@ua/react-native-airship 25.0.0 → 25.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=36
4
4
  Airship_compileSdkVersion=36
5
5
  Airship_ndkversion=26.1.10909125
6
- Airship_airshipProxyVersion=14.6.1
6
+ Airship_airshipProxyVersion=14.7.0
@@ -39,7 +39,7 @@ public class AirshipReactNative: NSObject {
39
39
  AirshipProxy.shared
40
40
  }
41
41
 
42
- public static let version: String = "25.0.0"
42
+ public static let version: String = "25.1.0"
43
43
 
44
44
  private let eventNotifier = EventNotifier()
45
45
 
@@ -157,10 +157,12 @@ NSString *const RNAirshipMessageViewErrorKey = @"error";
157
157
  - (void)dispatchOnLoadFinishedEvent: (NSString*)messageID
158
158
  {
159
159
  #ifdef RCT_NEW_ARCH_ENABLED
160
- std::dynamic_pointer_cast<const facebook::react::RNAirshipMessageViewEventEmitter>(_eventEmitter)
161
- ->onLoadFinished(facebook::react::RNAirshipMessageViewEventEmitter::OnLoadFinished{
162
- .messageId = std::string([messageID UTF8String])
163
- });
160
+ auto emitter = std::dynamic_pointer_cast<const facebook::react::RNAirshipMessageViewEventEmitter>(_eventEmitter);
161
+ if (emitter){
162
+ emitter->onLoadFinished(facebook::react::RNAirshipMessageViewEventEmitter::OnLoadFinished{
163
+ .messageId = std::string([messageID UTF8String])
164
+ });
165
+ }
164
166
  #else
165
167
  if (self.onLoadFinished) {
166
168
  self.onLoadFinished(@{RNAirshipMessageViewMessageIDKey: messageID });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ua/react-native-airship",
3
- "version": "25.0.0",
3
+ "version": "25.1.0",
4
4
  "description": "Airship plugin for React Native apps.",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",
@@ -18,5 +18,5 @@ Pod::Spec.new do |s|
18
18
 
19
19
  install_modules_dependencies(s)
20
20
 
21
- s.dependency "AirshipFrameworkProxy", "14.6.1"
21
+ s.dependency "AirshipFrameworkProxy", "14.7.0"
22
22
  end