@trycourier/courier-react-native 5.6.10 → 5.6.12

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/README.md CHANGED
@@ -256,7 +256,6 @@ Starter projects using this SDK.
256
256
 
257
257
  # **Share feedback with Courier**
258
258
 
259
- We are building the best SDKs for handling notifications! Have an idea or feedback about our SDKs? Here are some links to contact us:
259
+ We want to make this the best SDK for managing notifications! Have an idea or feedback about our SDKs? Let us know!
260
260
 
261
- - [Courier Feedback](https://feedback.courier.com/)
262
- - [Courier React Native Issues](https://github.com/trycourier/courier-react-native/issues)
261
+ [Courier React Native Issues](https://github.com/trycourier/courier-react-native/issues)
@@ -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.10")
18
+ val COURIER_AGENT = CourierAgent.ReactNativeAndroid(version = "5.6.12")
19
19
  }
20
20
 
21
21
  internal fun ReactContext.sendEvent(eventName: String, value: Any?) {
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
18
 
19
19
  # Courier Core Dependency
20
- s.dependency "Courier_iOS", "5.7.14"
20
+ s.dependency "Courier_iOS", "5.7.15"
21
21
 
22
22
  # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
23
23
  # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
@@ -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.10"];
36
+ Courier.agent = [CourierAgent reactNativeIOS:@"5.6.12"];
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.10")
17
+ Courier.agent = CourierAgent.reactNativeIOS("5.6.12")
18
18
 
19
19
  }
20
20
 
@@ -474,7 +474,7 @@ class CourierSharedModule: CourierReactNativeEventEmitter {
474
474
  func fetchNextPageOfMessages(inboxMessageFeed: String, resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock) -> Void {
475
475
  Task {
476
476
  do {
477
- let value: InboxMessageFeed = inboxMessageFeed == "archive" ? .feed : .archive
477
+ let value: InboxMessageFeed = inboxMessageFeed == "archive" ? .archive : .feed
478
478
  let messages = try await Courier.shared.fetchNextInboxPage(value)
479
479
  resolve(try messages.map { try $0.toJson() ?? "" })
480
480
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trycourier/courier-react-native",
3
- "version": "5.6.10",
3
+ "version": "5.6.12",
4
4
  "description": "Inbox, Push Notifications, and Preferences for React Native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",