react-native-mapp-plugin 1.3.1 → 1.3.4
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 +35 -2
- package/Mapp.js +22 -19
- package/RNMappPlugin.podspec +3 -2
- package/android/.gradle/8.14.3/checksums/checksums.lock +0 -0
- package/android/.gradle/8.14.3/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.14.3/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.14.3/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/.name +1 -0
- package/android/.idea/AndroidProjectSystem.xml +6 -0
- package/android/.idea/caches/deviceStreaming.xml +981 -0
- package/android/.idea/compiler.xml +6 -0
- package/android/.idea/deviceManager.xml +13 -0
- package/android/.idea/gradle.xml +38 -0
- package/android/.idea/kotlinc.xml +6 -0
- package/android/.idea/migrations.xml +10 -0
- package/android/.idea/misc.xml +10 -0
- package/android/.idea/runConfigurations.xml +17 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/.idea/workspace.xml +68 -0
- package/android/build/reports/problems/problems-report.html +663 -0
- package/android/build.gradle +2 -2
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64/libAppoxeeSDK.a +0 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/libAppoxeeSDK.a +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,29 @@
|
|
|
1
|
-
# Version 1.4
|
|
1
|
+
# Version 1.3.4
|
|
2
|
+
- Updated native Mapp SDK versions; for Android - 6.1.3; for iOS - 6.1.1;
|
|
3
|
+
**Bug Fixes**
|
|
4
|
+
- Android: Fixed an issue where notificationMode settings had no effect — setting the mode to BACKGROUND_ONLY or SILENT_ONLY previously displayed push messages even when the application was in the foreground.
|
|
5
|
+
- Android: Fixed a bug where the device’s cached state was not properly invalidated after logout, which caused certain SDK methods to malfunction.
|
|
6
|
+
- Android: Fixed an issue where device fingerprint information was not updated when changes occurred.
|
|
7
|
+
- iOS: Updated internal implementation to remove usage of deprecated iOS APIs.
|
|
8
|
+
- iOS: Links from Push and In-App messages continue to open and function as expected.
|
|
9
|
+
|
|
10
|
+
**Dependency Updates (Android)**
|
|
11
|
+
```
|
|
12
|
+
*com.google.code.gson:gson: 2.13.2
|
|
13
|
+
*com.google.dagger:dagger: 2.57.2
|
|
14
|
+
*com.google.firebase:firebase-bom: 34.4.0
|
|
15
|
+
*com.github.bumptech.glide:compiler: 5.0.5
|
|
16
|
+
*androidx.appcompat:appcompat: 1.7.1
|
|
17
|
+
*androidx.webkit:webkit: 1.14.0
|
|
18
|
+
*androidx.work:work-runtime: 2.10.5
|
|
19
|
+
*androidx.concurrent:concurrent-futures: 1.3.0
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
# Version 1.3.2
|
|
23
|
+
- Resolved an issue introduced in version 1.3.1 where changes to the setAlias function declaration caused compatibility problems. The function has been updated to ensure backward compatibility.
|
|
24
|
+
|
|
25
|
+
# Version 1.3.1
|
|
26
|
+
*** Features ***
|
|
2
27
|
- Updated react native version to 0.81.4
|
|
3
28
|
- Updated Gradle to version 8.14.2
|
|
4
29
|
- android minSdk updated to version 24
|
|
@@ -6,4 +31,12 @@
|
|
|
6
31
|
|
|
7
32
|
### Android requrements
|
|
8
33
|
* minimum required node version is 20.19.4
|
|
9
|
-
* minimum requred Gradle version 8.14.2
|
|
34
|
+
* minimum requred Gradle version 8.14.2
|
|
35
|
+
|
|
36
|
+
### iOS Requirements
|
|
37
|
+
|
|
38
|
+
* Additional flag needs to be added under the buildSettings -> OTHER_CPLUSPLUSFLAGS
|
|
39
|
+
-DFOLLY_CFG_NO_COROUTINES=1,
|
|
40
|
+
-DFOLLY_HAVE_CLOCK_GETTIME=1
|
|
41
|
+
* Mapp SDK 6.0.10 -> 6.1.0
|
|
42
|
+
* Mapp Geolocation -> 6.0.7
|
package/Mapp.js
CHANGED
|
@@ -86,19 +86,14 @@ export class Mapp {
|
|
|
86
86
|
* Sets user alias
|
|
87
87
|
*
|
|
88
88
|
* @param alias
|
|
89
|
-
*/
|
|
90
|
-
static setAlias(alias: string): Promise<Boolean> {
|
|
91
|
-
return RNMappPluginModule.setAlias(alias);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Sets user alias
|
|
96
|
-
*
|
|
97
|
-
* @param alias
|
|
98
89
|
* @param resendAttributes
|
|
99
90
|
*/
|
|
100
|
-
static setAlias(alias: string, resendAttributes:
|
|
101
|
-
|
|
91
|
+
static setAlias(alias: string, resendAttributes: boolean): Promise<Boolean> {
|
|
92
|
+
if (resendAttributes !== undefined && resendAttributes !== null) {
|
|
93
|
+
return RNMappPluginModule.setAliasWithResend(alias, resendAttributes);
|
|
94
|
+
} else {
|
|
95
|
+
return RNMappPluginModule.setAlias(alias);
|
|
96
|
+
}
|
|
102
97
|
}
|
|
103
98
|
|
|
104
99
|
/**
|
|
@@ -215,7 +210,7 @@ export class Mapp {
|
|
|
215
210
|
}
|
|
216
211
|
}
|
|
217
212
|
|
|
218
|
-
|
|
213
|
+
/**
|
|
219
214
|
* Set Custom Attributes
|
|
220
215
|
*
|
|
221
216
|
*/
|
|
@@ -223,11 +218,11 @@ export class Mapp {
|
|
|
223
218
|
return RNMappPluginModule.setAttributes(attributes);
|
|
224
219
|
}
|
|
225
220
|
|
|
226
|
-
|
|
221
|
+
/**
|
|
227
222
|
* Get Custom Attributes
|
|
228
223
|
*
|
|
229
224
|
*/
|
|
230
|
-
static getAttributes(attributes: array): Promise<Object>
|
|
225
|
+
static getAttributes(attributes: array): Promise<Object> {
|
|
231
226
|
return RNMappPluginModule.getAttributes(attributes);
|
|
232
227
|
}
|
|
233
228
|
|
|
@@ -326,13 +321,21 @@ export class Mapp {
|
|
|
326
321
|
return RNMappPluginModule.stopGeoFencing();
|
|
327
322
|
}
|
|
328
323
|
|
|
329
|
-
static fetchLatestInboxMessage(): Promise<any>{
|
|
324
|
+
static fetchLatestInboxMessage(): Promise<any> {
|
|
330
325
|
if (Platform.OS == "ios") {
|
|
331
|
-
print("fatch latest message for iOS part")
|
|
326
|
+
print("fatch latest message for iOS part");
|
|
332
327
|
RNMappPluginModule.fetchLatestInboxMessage();
|
|
333
|
-
this.addInboxMessagesListener(messages => {
|
|
334
|
-
print(
|
|
335
|
-
|
|
328
|
+
this.addInboxMessagesListener((messages) => {
|
|
329
|
+
print(
|
|
330
|
+
"message arrived ",
|
|
331
|
+
messages,
|
|
332
|
+
" length",
|
|
333
|
+
messages[messages.length - 1]
|
|
334
|
+
);
|
|
335
|
+
messages.sort(
|
|
336
|
+
(message1, message2) =>
|
|
337
|
+
message1["template_id"] > message2["template_id"]
|
|
338
|
+
);
|
|
336
339
|
alert(JSON.stringify(messages[0]));
|
|
337
340
|
return JSON.stringify(messages[0]);
|
|
338
341
|
});
|
package/RNMappPlugin.podspec
CHANGED
|
@@ -18,13 +18,14 @@ Pod::Spec.new do |s|
|
|
|
18
18
|
s.source_files = "ios/**/*.{h,c,m,swift}"
|
|
19
19
|
#s.vendored_framework = "ios/Frameworks/AppoxeeSDK.xcframework", "ios/Frameworks/AppoxeeLocationServices.framework", "ios/Frameworks/AppoxeeInapp.framework"
|
|
20
20
|
#s.resources = "ios/Frameworks/AppoxeeSDKResources.bundle", "ios/Frameworks/AppoxeeInappResources.bundle"
|
|
21
|
-
|
|
21
|
+
#s.preserve_path = "ios/Frameworks/"
|
|
22
22
|
# s.public_header_files = "ios/Frameworks/AppoxeeSDK.framework/Headers/"
|
|
23
23
|
s.requires_arc = true
|
|
24
24
|
s.frameworks = "WebKit"
|
|
25
25
|
s.library = 'sqlite3'
|
|
26
26
|
s.dependency "React"
|
|
27
|
-
s.dependency
|
|
27
|
+
s.dependency 'RCT-Folly'
|
|
28
|
+
s.dependency "MappSDK" , '~> 6.1.1'
|
|
28
29
|
s.dependency "MappSDKInapp"
|
|
29
30
|
s.dependency "MappSDKGeotargeting", '~> 6.0.7'
|
|
30
31
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
MappEngagePlugin
|