Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ognjen Ristanovic committed Sep 18, 2023
1 parent 4289abd commit 7727979
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion urbanairship-cordova/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<pod name="AirshipFrameworkProxy" spec="4.2.0" />
<pod name="AirshipFrameworkProxy" spec="4.0.0" />
</pods>
</podspec>

Expand Down
14 changes: 7 additions & 7 deletions urbanairship-cordova/src/ios/AirshipCordova.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public class AirshipCordova: NSObject {
try? AirshipProxy.shared.attemptTakeOff(launchOptions: launchOptions)

Task {
let stream = await AirshipProxyEventEmitter.shared.pendingEventTypeAdded
let stream = await AirshipProxyEventEmitter.shared.pendingEventAdded
for await _ in stream {
await self.eventNotifier.notifyPendingEvents()
}
Expand Down Expand Up @@ -263,7 +263,7 @@ public extension AirshipCordova {

@objc
func pushGetNotificationStatus() async throws -> [String: Any] {
return try AirshipProxy.shared.push.getNotificationStatus()
return try await AirshipProxy.shared.push.getNotificationStatus()
}

@objc
Expand Down Expand Up @@ -293,8 +293,8 @@ public extension AirshipCordova {
}

@objc
func pushGetAuthorizedNotificationStatus() throws -> [String : Any] {
return try AirshipProxy.shared.push.getNotificationStatus()
func pushGetAuthorizedNotificationStatus() async throws -> [String : Any] {
return try await AirshipProxy.shared.push.getNotificationStatus()
}

@objc
Expand All @@ -319,7 +319,7 @@ public extension AirshipCordova {
func actionsRun(actionName: String, actionValue: Any?) async throws-> Any? {
return try await AirshipProxy.shared.action.runAction(
actionName,
actionValue: try AirshipJSON.wrap(actionValue)
value: try AirshipJSON.wrap(actionValue)
)
}
}
Expand Down Expand Up @@ -356,7 +356,7 @@ public extension AirshipCordova {

@objc
func contactGetNamedUserIdOrEmtpy() async throws -> String {
return try AirshipProxy.shared.contact.getNamedUser() ?? ""
return try await AirshipProxy.shared.contact.getNamedUser() ?? ""
}

@objc
Expand Down Expand Up @@ -434,7 +434,7 @@ public extension AirshipCordova {

@objc
func messageCenterGetMessages() async throws -> [Any] {
return try AirshipProxy.shared.messageCenter.getMessagesJSON()
return try await AirshipProxy.shared.messageCenter.getMessagesJSON()
}

@objc
Expand Down
3 changes: 2 additions & 1 deletion urbanairship-cordova/src/ios/events/UACordovaPushEvent.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* Copyright Urban Airship and Contributors */

#import "UACordovaPushEvent.h"

/*
NSString *const EventPushReceived = @"urbanairship.push";
@implementation UACordovaPushEvent
Expand Down Expand Up @@ -85,3 +85,4 @@ + (NSDictionary *)pushEventDataFromNotificationContent:(NSDictionary *)userInfo
}
@end
*/

0 comments on commit 7727979

Please sign in to comment.