@trycourier/courier-react-native 5.6.4 → 5.6.5

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.
@@ -110,7 +110,7 @@ dependencies {
110
110
  implementation 'com.google.code.gson:gson:2.11.0'
111
111
 
112
112
  // Courier Core SDK
113
- api 'com.github.trycourier:courier-android:5.2.9'
113
+ api 'com.github.trycourier:courier-android:5.2.10'
114
114
  api 'androidx.recyclerview:recyclerview:1.3.2'
115
115
 
116
116
  }
@@ -392,4 +392,10 @@ class CourierSharedModule(
392
392
  }
393
393
  }
394
394
  }
395
+
396
+ @ReactMethod
397
+ fun setIsUITestsActive(isActive: Boolean) {
398
+ Courier.isUITestsActive = isActive
399
+ }
400
+
395
401
  }
@@ -32,8 +32,4 @@ abstract class ReactNativeModule(val tag: String, private val name: String, reac
32
32
  throwable.message?.let { reject(it, tag, throwable) }
33
33
  }
34
34
 
35
- @ReactMethod
36
- fun setIsUITestsActive(isActive: Boolean) {
37
- Courier.isUITestsActive = isActive
38
- }
39
35
  }
@@ -15,7 +15,7 @@ import com.facebook.react.modules.core.DeviceEventManagerModule
15
15
  import com.google.gson.GsonBuilder
16
16
 
17
17
  internal object Utils {
18
- val COURIER_AGENT = CourierAgent.ReactNativeAndroid(version = "5.6.4")
18
+ val COURIER_AGENT = CourierAgent.ReactNativeAndroid(version = "5.6.5")
19
19
  }
20
20
 
21
21
  internal fun ReactContext.sendEvent(eventName: String, value: Any?) {
@@ -447,9 +447,4 @@ internal class CourierClientModule: CourierReactNativeEventEmitter {
447
447
  }
448
448
  }
449
449
 
450
- @objc(setIsUITestsActive:)
451
- func setIsUITestsActive(_ isActive: Bool) {
452
- Courier.isUITestsActive = isActive
453
- }
454
-
455
450
  }
@@ -33,7 +33,7 @@ static NSString *const CourierForegroundOptionsDidChangeNotification = @"iosFore
33
33
  if (self) {
34
34
 
35
35
  // Set the user agent
36
- Courier.agent = [CourierAgent reactNativeIOS:@"5.6.4"];
36
+ Courier.agent = [CourierAgent reactNativeIOS:@"5.6.5"];
37
37
 
38
38
  // Register for remote notifications
39
39
  UIApplication *app = [UIApplication sharedApplication];
@@ -14,7 +14,7 @@ internal class CourierReactNativeEventEmitter: RCTEventEmitter {
14
14
 
15
15
  // Set the user agent
16
16
  // Used to know the platform performing requests
17
- Courier.agent = CourierAgent.reactNativeIOS("5.6.4")
17
+ Courier.agent = CourierAgent.reactNativeIOS("5.6.5")
18
18
 
19
19
  }
20
20
 
@@ -486,5 +486,10 @@ class CourierSharedModule: CourierReactNativeEventEmitter {
486
486
  override func supportedEvents() -> [String]! {
487
487
  return nativeEmitters
488
488
  }
489
+
490
+ @objc(setIsUITestsActive:)
491
+ func setIsUITestsActive(_ isActive: Bool) {
492
+ Courier.isUITestsActive = isActive
493
+ }
489
494
 
490
495
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trycourier/courier-react-native",
3
- "version": "5.6.4",
3
+ "version": "5.6.5",
4
4
  "description": "Inbox, Push Notifications, and Preferences for React Native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",