react-native-moengage 12.5.0 → 12.6.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 +10 -0
- 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 +2 -2
- 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,13 @@
|
|
|
1
|
+
# 15-04-2026
|
|
2
|
+
|
|
3
|
+
## 12.6.0
|
|
4
|
+
|
|
5
|
+
- Android
|
|
6
|
+
- updating `android-bom` to `2.1.0`
|
|
7
|
+
- AGP version updated from `8.7.3` to `8.13.2`
|
|
8
|
+
- Migrating the common gradle configuration to the gradle config
|
|
9
|
+
- iOS
|
|
10
|
+
- `MoEngage-iOS-SDK` version updated to `10.10.2`
|
|
1
11
|
# 09-02-2026
|
|
2
12
|
|
|
3
13
|
## 12.5.0
|
|
@@ -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.8.
|
|
28
|
+
s.dependency 'MoEngagePluginBase','6.8.2'
|
|
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 = "1.
|
|
11
|
-
moengagePluginBaseBOMVersion = "
|
|
10
|
+
moengageNativeBOMVersion = "2.1.0"
|
|
11
|
+
moengagePluginBaseBOMVersion = "2.0.0"
|
|
12
12
|
|
|
13
13
|
// AndroidX Support Libraries Versions
|
|
14
14
|
androidXCore = "1.15.0"
|
|
@@ -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.6.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
|
-
}
|