react-native-moengage 11.1.1 → 11.1.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ # 29-01-2025
2
+
3
+ ## 11.1.3
4
+ - Android
5
+ - `moe-android-sdk` version updated to `13.05.02`
6
+ - iOS
7
+ - MoEngage-iOS-SDK version updated to `9.22.1`.
8
+
9
+ # 08-01-2025
10
+
11
+ ## 11.1.2
12
+ - Added support for React version 0.76.
13
+
1
14
  # 25-11-2024
2
15
 
3
16
  ## 11.1.1
@@ -15,7 +15,7 @@ Pod::Spec.new do |s|
15
15
  s.platforms = { :ios => "11.0", :tvos => "11.0" }
16
16
  s.source_files = 'iOS/MoEReactBridge/**/*.{h,m,mm}'
17
17
  s.dependency 'React'
18
- s.dependency 'MoEngagePluginBase','5.1.1'
18
+ s.dependency 'MoEngagePluginBase','5.2.0'
19
19
  s.ios.dependency 'MoEngage-iOS-SDK/RichNotification'
20
20
 
21
21
  s.prepare_command = <<-CMD
@@ -20,9 +20,9 @@ rootProject.allprojects {
20
20
 
21
21
  ext {
22
22
  //dependency version
23
- moengageCoreVersion = "13.05.01"
24
- moengageInAppVersion = "8.7.0"
25
- basePluginVersion = "4.2.0"
23
+ moengageCoreVersion = "13.05.02"
24
+ moengageInAppVersion = "8.7.1"
25
+ basePluginVersion = "4.2.1"
26
26
  //build versions
27
27
  minimumVersion = 21
28
28
  compileVersion = 34
@@ -9,18 +9,13 @@
9
9
  #import <Foundation/Foundation.h>
10
10
  #import <React/RCTBridgeModule.h>
11
11
  #import <React/RCTEventEmitter.h>
12
+ #import "MoEReactEventDispatcher.h"
12
13
 
13
14
  #ifdef RCT_NEW_ARCH_ENABLED
14
15
  #import <NativeMoEngageSpec/NativeMoEngageSpec.h>
15
- #endif
16
-
17
- #ifdef RCT_NEW_ARCH_ENABLED
18
- @interface MoEReactBridge : RCTEventEmitter <NativeMoEngageSpec>
19
- -(void)sendEventWithName:(NSDictionary *)payloadDict;
16
+ @interface MoEReactBridge : RCTEventEmitter <NativeMoEngageSpec, MoEReactEventDispatcher>
20
17
  @end
21
18
  #else
22
- @interface MoEReactBridge : RCTEventEmitter <RCTBridgeModule>
23
- -(void)sendEventWithName:(NSDictionary *)payloadDict;
19
+ @interface MoEReactBridge : RCTEventEmitter <RCTBridgeModule, MoEReactEventDispatcher>
24
20
  @end
25
21
  #endif
26
-
@@ -44,7 +44,7 @@ RCT_EXPORT_MODULE(MoEReactBridge);
44
44
  -(void)startObserving {
45
45
  hasListeners = YES;
46
46
  [self flushDelayedEvents];
47
- [MoEReactNativeHandler sharedInstance].reactBridge = self;
47
+ [MoEReactNativeHandler sharedInstance].delegate = self;
48
48
  }
49
49
 
50
50
  // Will be called when this module's last listener is removed, or on dealloc.
@@ -244,6 +244,11 @@ RCT_EXPORT_METHOD(deleteUser:(NSString *)payload resolve:(RCTPromiseResolveBlock
244
244
  RCTLogInfo(@"Warning: This is an Android only feature.");
245
245
  }
246
246
 
247
+ RCT_EXPORT_METHOD(deviceIdentifierTrackingStatusUpdate:(NSString *)payload) {
248
+ RCTLogInfo(@"Warning: This is an Android only feature.");
249
+ }
250
+
251
+
247
252
  #ifdef RCT_NEW_ARCH_ENABLED
248
253
  - (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:(const facebook::react::ObjCTurboModule::InitParams &)params {
249
254
  return std::make_shared<facebook::react::NativeMoEngageSpecJSI>(params);
@@ -0,0 +1,14 @@
1
+ //
2
+ // MoEReactEventDispatcher.h
3
+ // ReactNativeMoEngage
4
+ //
5
+ // Created by Rakshitha . on 03/01/25.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ @protocol MoEReactEventDispatcher <NSObject>
11
+
12
+ -(void)sendEventWithName:(NSDictionary *)payloadDict;
13
+
14
+ @end
@@ -9,14 +9,15 @@
9
9
  #import <Foundation/Foundation.h>
10
10
  #import <UIKit/UIKit.h>
11
11
  #import <React/RCTEventEmitter.h>
12
- #import "MoEReactBridge.h"
12
+ #import "MoEReactEventDispatcher.h"
13
+
13
14
 
14
15
  @interface MoEReactNativeHandler : NSObject
15
16
  +(instancetype)sharedInstance;
16
17
 
17
- @property (nonatomic, weak) MoEReactBridge *reactBridge;
18
+ @property (nonatomic, weak) id<MoEReactEventDispatcher> delegate;
18
19
 
19
- -(void)setDelegate:(NSString *)identifier;
20
+ -(void)setPluginBridgeDelegate:(NSString *)identifier;
20
21
 
21
22
  -(void)initialize:(NSString *)payload;
22
23
  -(void)setAppStatus:(NSString *)payload;
@@ -26,7 +26,7 @@
26
26
  return instance;
27
27
  }
28
28
 
29
- -(void)setDelegate:(NSString *)identifier {
29
+ -(void)setPluginBridgeDelegate:(NSString *)identifier {
30
30
  [[MoEngagePluginBridge sharedInstance] setPluginBridgeDelegate:self identifier:identifier];
31
31
  }
32
32
 
@@ -154,7 +154,7 @@
154
154
  }
155
155
 
156
156
  NSDictionary* userInfo = @{kEventName:event,kPayloadDict:updatedDict};
157
- [self.reactBridge sendEventWithName:userInfo];
157
+ [self.delegate sendEventWithName:userInfo];
158
158
  }
159
159
 
160
160
  @end
@@ -62,6 +62,6 @@
62
62
  }
63
63
 
64
64
  - (void)setPluginBridgeDelegate: (NSString*)identifier {
65
- [[MoEReactNativeHandler sharedInstance] setDelegate:identifier];
65
+ [[MoEReactNativeHandler sharedInstance] setPluginBridgeDelegate:identifier];
66
66
  }
67
67
  @end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-moengage",
3
- "version": "11.1.1",
3
+ "version": "11.1.3",
4
4
  "description": "MoEngage is a mobile marketing automation company. This react-native SDK helps you track events, trigger smart notifications and in-apps, provides a drop-in Inbox Controller for notifications.",
5
5
  "main": "src/index.ts",
6
6
  "files": [