react-native-moengage 12.5.0 → 12.7.0
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 +23 -8
- package/ReactNativeMoEngage.podspec +1 -1
- package/android/build.gradle +47 -53
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/moengage-dependency-helper.gradle +3 -3
- package/android/src/main/java/com/moengage/react/EventEmitterImpl.kt +1 -0
- package/package.json +5 -1
- package/android/user-agent.gradle +0 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
# 07-05-2026
|
|
2
|
+
|
|
3
|
+
## 12.7.0
|
|
4
|
+
|
|
5
|
+
- Android
|
|
6
|
+
- updating `android-bom` to `2.2.2`
|
|
7
|
+
- iOS
|
|
8
|
+
- Updated `MoEngage-iOS-SDK` to `10.12.0`
|
|
9
|
+
|
|
10
|
+
# 15-04-2026
|
|
11
|
+
|
|
12
|
+
## 12.6.0
|
|
13
|
+
|
|
14
|
+
- Android
|
|
15
|
+
- updating `android-bom` to `2.1.0`
|
|
16
|
+
- AGP version updated from `8.7.3` to `8.13.2`
|
|
17
|
+
- Migrating the common gradle configuration to the gradle config
|
|
18
|
+
- iOS
|
|
19
|
+
- `MoEngage-iOS-SDK` version updated to `10.10.2`
|
|
20
|
+
|
|
1
21
|
# 09-02-2026
|
|
2
22
|
|
|
3
23
|
## 12.5.0
|
|
@@ -18,7 +38,7 @@
|
|
|
18
38
|
- Moving the internal native dependencies to bill-of-materials (BOM) for better version management.
|
|
19
39
|
- iOS
|
|
20
40
|
- `MoEngage-iOS-SDK` version updated to `10.08.0`
|
|
21
|
-
|
|
41
|
+
|
|
22
42
|
# 17-10-2025
|
|
23
43
|
|
|
24
44
|
## 12.3.0
|
|
@@ -32,10 +52,8 @@
|
|
|
32
52
|
|
|
33
53
|
## 12.2.0
|
|
34
54
|
|
|
35
|
-
- iOS
|
|
36
|
-
|
|
37
|
-
- Android
|
|
38
|
-
-`moe-android-sdk` version updated to `14.03.03`
|
|
55
|
+
- iOS -`MoEngage-iOS-SDK` version updated to `10.05.0`
|
|
56
|
+
- Android -`moe-android-sdk` version updated to `14.03.03`
|
|
39
57
|
|
|
40
58
|
# 29-07-2025
|
|
41
59
|
|
|
@@ -198,7 +216,6 @@
|
|
|
198
216
|
| optOutDataTracking(true) | disableDataTracking() |
|
|
199
217
|
|
|
200
218
|
- iOS
|
|
201
|
-
|
|
202
219
|
- Removed support for SDK initialization from Info.plist.
|
|
203
220
|
- Removed APIs
|
|
204
221
|
|
|
@@ -328,7 +345,6 @@
|
|
|
328
345
|
## 8.2.0
|
|
329
346
|
|
|
330
347
|
- iOS
|
|
331
|
-
|
|
332
348
|
- MoEngage-iOS-SDK version updated to `~>9.2.0`.
|
|
333
349
|
- Updated API
|
|
334
350
|
|
|
@@ -358,7 +374,6 @@
|
|
|
358
374
|
## 8.1.0
|
|
359
375
|
|
|
360
376
|
- Android
|
|
361
|
-
|
|
362
377
|
- AGP version updated to `7.3.1`
|
|
363
378
|
- Gradle version updated to `7.4`
|
|
364
379
|
- Target SDK version - 31
|
|
@@ -25,7 +25,7 @@ Pod::Spec.new do |s|
|
|
|
25
25
|
s.public_header_files = "iOS/MoEReactBridge/{#{headers.join(',')}}.h"
|
|
26
26
|
s.weak_framework = 'UserNotifications'
|
|
27
27
|
s.dependency 'React'
|
|
28
|
-
s.dependency 'MoEngagePluginBase','6.
|
|
28
|
+
s.dependency 'MoEngagePluginBase','6.9.0'
|
|
29
29
|
s.ios.dependency 'MoEngage-iOS-SDK/RichNotification'
|
|
30
30
|
|
|
31
31
|
s.prepare_command = <<-CMD
|
package/android/build.gradle
CHANGED
|
@@ -1,65 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
repositories {
|
|
5
|
-
google()
|
|
6
|
-
mavenCentral()
|
|
7
|
-
}
|
|
1
|
+
import com.moengage.gradle.android.library.plugin.configs.BuildConfigType
|
|
2
|
+
import groovy.json.JsonSlurper
|
|
8
3
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
|
12
|
-
}
|
|
4
|
+
ext {
|
|
5
|
+
kotlinVersion = "1.9.23"
|
|
13
6
|
}
|
|
14
7
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
8
|
+
buildscript {
|
|
9
|
+
repositories {
|
|
10
|
+
google()
|
|
11
|
+
mavenCentral()
|
|
12
|
+
gradlePluginPortal()
|
|
13
|
+
}
|
|
21
14
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
dependencies {
|
|
16
|
+
classpath 'com.android.tools.build:gradle:8.13.2'
|
|
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"
|
|
19
|
+
}
|
|
25
20
|
}
|
|
26
21
|
|
|
27
|
-
apply plugin: 'com.android.
|
|
28
|
-
apply plugin: 'kotlin-android'
|
|
22
|
+
apply plugin: 'com.moengage.android.hybrid.module.config.plugin'
|
|
29
23
|
apply plugin: 'com.facebook.react'
|
|
30
24
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
minSdk minimumVersion
|
|
36
|
-
versionCode 1
|
|
37
|
-
versionName "1.0"
|
|
38
|
-
|
|
39
|
-
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
|
40
|
-
|
|
41
|
-
buildConfigField("boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString())
|
|
42
|
-
}
|
|
43
|
-
buildTypes {
|
|
44
|
-
release {
|
|
45
|
-
minifyEnabled false
|
|
46
|
-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
25
|
+
hybridModuleConfig.configurePlugin {
|
|
26
|
+
kotlinOptions {
|
|
27
|
+
enableJvmTarget = false
|
|
28
|
+
compilerArgs = ['-Xjvm-default=all']
|
|
47
29
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
30
|
+
buildFeature {
|
|
31
|
+
buildConfigField(
|
|
32
|
+
BuildConfigType.BOOLEAN,
|
|
33
|
+
"IS_NEW_ARCHITECTURE_ENABLED",
|
|
34
|
+
isNewArchitectureEnabled().toString()
|
|
35
|
+
)
|
|
36
|
+
buildConfigField(
|
|
37
|
+
BuildConfigType.STRING,
|
|
38
|
+
"MOENGAGE_REACT_LIBRARY_VERSION",
|
|
39
|
+
"\"${getCorePluginVersion().toString()}\""
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
}
|
|
62
43
|
|
|
44
|
+
android {
|
|
45
|
+
namespace "com.moengage.react"
|
|
63
46
|
sourceSets {
|
|
64
47
|
main {
|
|
65
48
|
if (isNewArchitectureEnabled()) {
|
|
@@ -78,9 +61,20 @@ dependencies {
|
|
|
78
61
|
compileOnly("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
|
|
79
62
|
}
|
|
80
63
|
|
|
81
|
-
apply from: file("./user-agent.gradle")
|
|
82
64
|
apply from: file("./moengage-dependency-helper.gradle")
|
|
83
65
|
|
|
84
66
|
def isNewArchitectureEnabled() {
|
|
85
67
|
return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
def getCorePluginVersion() {
|
|
71
|
+
String libraryVersionName = "UNKNOWN"
|
|
72
|
+
File packageJson = new File(project.projectDir.parentFile, "package.json")
|
|
73
|
+
|
|
74
|
+
if (packageJson.exists()) {
|
|
75
|
+
def parsedJson = new JsonSlurper().parseText(packageJson.text)
|
|
76
|
+
libraryVersionName = parsedJson.version
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return libraryVersionName
|
|
86
80
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#Thu Aug 18 13:23:11 IST 2022
|
|
2
2
|
distributionBase=GRADLE_USER_HOME
|
|
3
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.
|
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip
|
|
4
4
|
distributionPath=wrapper/dists
|
|
5
5
|
zipStorePath=wrapper/dists
|
|
6
6
|
zipStoreBase=GRADLE_USER_HOME
|
|
@@ -7,8 +7,8 @@ repositories {
|
|
|
7
7
|
|
|
8
8
|
ext {
|
|
9
9
|
// MoEngage Versions
|
|
10
|
-
moengageNativeBOMVersion = "
|
|
11
|
-
moengagePluginBaseBOMVersion = "
|
|
10
|
+
moengageNativeBOMVersion = "2.2.2"
|
|
11
|
+
moengagePluginBaseBOMVersion = "3.0.1"
|
|
12
12
|
|
|
13
13
|
// AndroidX Support Libraries Versions
|
|
14
14
|
androidXCore = "1.15.0"
|
|
@@ -20,7 +20,7 @@ dependencies {
|
|
|
20
20
|
implementation(platform("com.moengage:plugin-base-bom:$moengagePluginBaseBOMVersion"))
|
|
21
21
|
api("com.moengage:plugin-base")
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
api(platform("com.moengage:android-bom:$moengageNativeBOMVersion"))
|
|
24
24
|
api("com.moengage:moe-android-sdk")
|
|
25
25
|
api("com.moengage:inapp")
|
|
26
26
|
|
|
@@ -44,6 +44,7 @@ class EventEmitterImpl(private val reactContext: ReactContext) : EventEmitter {
|
|
|
44
44
|
)
|
|
45
45
|
EventType.INAPP_SELF_HANDLED_AVAILABLE -> emitInAppSelfHandled(event as InAppSelfHandledEvent)
|
|
46
46
|
EventType.PERMISSION -> emitPermissionResult(event as PermissionEvent)
|
|
47
|
+
else -> {}
|
|
47
48
|
}
|
|
48
49
|
} catch (t: Throwable) {
|
|
49
50
|
Logger.print(LogLevel.ERROR, t) { "$tag emit() : " }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-moengage",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.7.0",
|
|
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": [
|
|
@@ -48,5 +48,9 @@
|
|
|
48
48
|
"android": {
|
|
49
49
|
"javaPackageName": "com.moengage.react"
|
|
50
50
|
}
|
|
51
|
+
},
|
|
52
|
+
"repository": {
|
|
53
|
+
"type": "git",
|
|
54
|
+
"url": "https://github.com/moengage/React-Native"
|
|
51
55
|
}
|
|
52
56
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import groovy.json.JsonSlurper
|
|
2
|
-
|
|
3
|
-
String libraryVersionName = "UNKNOWN"
|
|
4
|
-
File packageJson = new File(project.projectDir.parentFile, "package.json")
|
|
5
|
-
|
|
6
|
-
if (packageJson.exists()) {
|
|
7
|
-
def parsedJson = new JsonSlurper().parseText(packageJson.text)
|
|
8
|
-
libraryVersionName = parsedJson.version
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
android {
|
|
12
|
-
defaultConfig {
|
|
13
|
-
// BuildConfig.VERSION_NAME
|
|
14
|
-
buildConfigField 'String', 'MOENGAGE_REACT_LIBRARY_VERSION', "\"${libraryVersionName}\""
|
|
15
|
-
}
|
|
16
|
-
}
|