reteno-react-native-sdk 3.0.0 → 3.0.1

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.
@@ -80,7 +80,7 @@ dependencies {
80
80
  //noinspection GradleDynamicVersion
81
81
  implementation "com.facebook.react:react-native"
82
82
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
83
- implementation 'com.reteno:fcm:2.10.1'
83
+ implementation 'com.reteno:fcm:2.10.2'
84
84
  implementation "com.google.firebase:firebase-messaging:23.1.0"
85
85
  implementation "com.google.firebase:firebase-messaging-ktx:23.1.0"
86
86
  coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'
@@ -2,6 +2,15 @@ import Foundation
2
2
  import UserNotifications
3
3
  import Reteno
4
4
 
5
+ /// Swift entry points that must be called before React Native creates the `RetenoSdk` module.
6
+ public enum RetenoReactNativeSdk {
7
+ /// Registers Reteno as the notification-center delegate early, so a notification response
8
+ /// that cold-launched the app can be replayed when the JavaScript SDK is initialized.
9
+ public static func delayedStart() {
10
+ RetenoSdk.delayedStart()
11
+ }
12
+ }
13
+
5
14
  @objc(RetenoSdk)
6
15
  open class RetenoSdk: RCTEventEmitter {
7
16
 
@@ -50,7 +59,7 @@ open class RetenoSdk: RCTEventEmitter {
50
59
  /// ```swift
51
60
  /// func application(_ application: UIApplication, didFinishLaunchingWithOptions ...) -> Bool {
52
61
  /// FirebaseApp.configure()
53
- /// RetenoSdk.delayedStart()
62
+ /// RetenoReactNativeSdk.delayedStart()
54
63
  /// ...
55
64
  /// }
56
65
  /// ```
@@ -0,0 +1,4 @@
1
+ #import <Foundation/Foundation.h>
2
+
3
+ // Public Objective-C compatibility header expected by Swift when this mixed-language
4
+ // pod is built as a framework. The native module API itself is exported from Swift.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reteno-react-native-sdk",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "The Reteno React Native SDK for App Analytics and Engagement.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -15,7 +15,7 @@ Pod::Spec.new do |s|
15
15
 
16
16
  s.source_files = "ios/**/*.{h,m,mm,swift}"
17
17
 
18
- s.dependency 'Reteno', '2.7.3'
18
+ s.dependency 'Reteno', '2.7.4'
19
19
 
20
20
  install_modules_dependencies(s)
21
21
  end