@ua/react-native-airship 21.0.1 → 21.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/gradle.properties +1 -1
- package/android/src/main/java/com/urbanairship/reactnative/ReactMessageView.kt +2 -2
- package/ios/AirshipPluginLoader.swift +2 -0
- package/ios/AirshipReactNative.swift +3 -3
- package/ios/ProxyDataMigrator.swift +2 -2
- package/package.json +1 -1
- package/react-native-airship.podspec +1 -1
|
@@ -11,8 +11,8 @@ import com.facebook.react.bridge.Arguments
|
|
|
11
11
|
import com.facebook.react.bridge.LifecycleEventListener
|
|
12
12
|
import com.facebook.react.bridge.ReactContext
|
|
13
13
|
import com.facebook.react.bridge.WritableMap
|
|
14
|
-
import com.urbanairship.
|
|
15
|
-
import com.urbanairship.
|
|
14
|
+
import com.urbanairship.messagecenter.ui.widget.MessageWebView
|
|
15
|
+
import com.urbanairship.messagecenter.ui.widget.MessageWebViewClient
|
|
16
16
|
import com.urbanairship.messagecenter.Message
|
|
17
17
|
import com.urbanairship.messagecenter.MessageCenter
|
|
18
18
|
import kotlinx.coroutines.CoroutineScope
|
|
@@ -39,7 +39,7 @@ public class AirshipReactNative: NSObject {
|
|
|
39
39
|
AirshipProxy.shared
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
public static let version: String = "21.0
|
|
42
|
+
public static let version: String = "21.1.0"
|
|
43
43
|
|
|
44
44
|
private let eventNotifier = EventNotifier()
|
|
45
45
|
|
|
@@ -54,7 +54,7 @@ public class AirshipReactNative: NSObject {
|
|
|
54
54
|
notifier(AirshipReactNative.pendingEventsEventName, [:])
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
if
|
|
57
|
+
if AirshipProxyEventEmitter.shared.hasAnyEvents() {
|
|
58
58
|
await self.eventNotifier.notifyPendingEvents()
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -107,7 +107,7 @@ public class AirshipReactNative: NSObject {
|
|
|
107
107
|
try? AirshipProxy.shared.attemptTakeOff(launchOptions: launchOptions)
|
|
108
108
|
|
|
109
109
|
Task {
|
|
110
|
-
let stream =
|
|
110
|
+
let stream = AirshipProxyEventEmitter.shared.pendingEventAdded
|
|
111
111
|
for await _ in stream {
|
|
112
112
|
await self.eventNotifier.notifyPendingEvents()
|
|
113
113
|
}
|
|
@@ -80,12 +80,12 @@ struct ProxyDataMigrator {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
// Config
|
|
83
|
-
|
|
83
|
+
let config = defaults.object(forKey: configKey)
|
|
84
84
|
if var config = config as? [String: Any] {
|
|
85
85
|
|
|
86
86
|
// Proxy config is based off react-natives original config,
|
|
87
87
|
// the only difference is the feature names.
|
|
88
|
-
if
|
|
88
|
+
if let features = config["enabledFeatures"] as? [String] {
|
|
89
89
|
config["enabledFeatures"] = features.compactMap { name in
|
|
90
90
|
featureNameMap[name]
|
|
91
91
|
}
|
package/package.json
CHANGED