@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.
@@ -3,4 +3,4 @@ Airship_minSdkVersion=23
3
3
  Airship_targetSdkVersion=35
4
4
  Airship_compileSdkVersion=35
5
5
  Airship_ndkversion=26.1.10909125
6
- Airship_airshipProxyVersion=12.1.1
6
+ Airship_airshipProxyVersion=13.0.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.android.framework.proxy.ui.MessageWebView
15
- import com.urbanairship.android.framework.proxy.ui.MessageWebViewClient
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
@@ -1,3 +1,5 @@
1
+ /* Copyright Airship and Contributors */
2
+
1
3
  import AirshipFrameworkProxy
2
4
 
3
5
  @objc(AirshipPluginLoader)
@@ -39,7 +39,7 @@ public class AirshipReactNative: NSObject {
39
39
  AirshipProxy.shared
40
40
  }
41
41
 
42
- public static let version: String = "21.0.1"
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 await AirshipProxyEventEmitter.shared.hasAnyEvents() {
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 = await AirshipProxyEventEmitter.shared.pendingEventAdded
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
- var config = defaults.object(forKey: configKey)
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 var features = config["enabledFeatures"] as? [String] {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ua/react-native-airship",
3
- "version": "21.0.1",
3
+ "version": "21.1.0",
4
4
  "description": "Airship plugin for React Native apps.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -22,5 +22,5 @@ Pod::Spec.new do |s|
22
22
  s.dependency "React-Core"
23
23
  end
24
24
 
25
- s.dependency "AirshipFrameworkProxy", "12.1.1"
25
+ s.dependency "AirshipFrameworkProxy", "13.0.1"
26
26
  end