react-native-moengage 12.8.0 → 12.8.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # 11-06-2026
2
+
3
+ ## 12.8.1
4
+
5
+ - iOS
6
+ - Added compatibility for React Native pre-built libraries.
7
+ - Android
8
+ - Downgrading Compile Java Version to 17
9
+
1
10
  # 19-05-2026
2
11
 
3
12
  ## 12.8.0
@@ -15,7 +15,7 @@ buildscript {
15
15
  dependencies {
16
16
  classpath 'com.android.tools.build:gradle:8.13.2'
17
17
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
18
- classpath "com.moengage.android.hybrid.module.config.plugin:com.moengage.android.hybrid.module.config.plugin.gradle.plugin:0.0.4"
18
+ classpath "com.moengage.android.hybrid.module.config.plugin:com.moengage.android.hybrid.module.config.plugin.gradle.plugin:0.0.5"
19
19
  }
20
20
  }
21
21
 
@@ -8,7 +8,18 @@
8
8
 
9
9
  #import <Foundation/Foundation.h>
10
10
  #import <UIKit/UIKit.h>
11
- #import <React/RCTEventEmitter.h>
11
+
12
+ // Defined locally to avoid importing non-modular React headers in this public
13
+ // framework header, which breaks builds using USE_FRAMEWORKS=static.
14
+ // These match the typedefs in <React/RCTBridgeMethod.h>.
15
+ #ifndef RCTPromiseResolveBlock_defined
16
+ #define RCTPromiseResolveBlock_defined
17
+ typedef void (^RCTPromiseResolveBlock)(id result);
18
+ #endif
19
+ #ifndef RCTPromiseRejectBlock_defined
20
+ #define RCTPromiseRejectBlock_defined
21
+ typedef void (^RCTPromiseRejectBlock)(NSString *code, NSString *message, NSError *error);
22
+ #endif
12
23
 
13
24
  @protocol MoEReactEventDispatcher;
14
25
 
@@ -13,6 +13,7 @@
13
13
  #import <MoEngageCore/MoEngageCore.h>
14
14
  #import "MoEReactNativeHandler.h"
15
15
  #import "MoEngageReactSDKInitializationConfig.h"
16
+ #import <React/RCTEventEmitter.h>
16
17
 
17
18
  @import MoEngagePluginBase;
18
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-moengage",
3
- "version": "12.8.0",
3
+ "version": "12.8.1",
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": [