react-native-mparticle 2.7.8 → 2.7.9
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/README.md +2 -18
- package/android/.classpath +1 -1
- package/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
- package/android/.gradle/7.5.1/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.5.1/checksums/sha1-checksums.bin +0 -0
- package/android/.settings/org.eclipse.buildship.core.prefs +1 -1
- package/android/.settings/org.eclipse.jdt.core.prefs +4 -0
- package/android/build.gradle +7 -7
- package/android/src/main/java/com/mparticle/react/MParticleModule.java +4 -0
- package/js/index.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -83,17 +83,9 @@ func application(_ application: UIApplication, didFinishLaunchingWithOptions lau
|
|
|
83
83
|
|
|
84
84
|
#### Objective-C Example
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
With recent changes in Swift support for static libraries and React Native's preference for the traditional CocoaPods and static libraries delivery mechanism, we reccomend against setting `use_frameworks!` in your Podfile.
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
```objective-c
|
|
91
|
-
@import mParticle_Apple_SDK; // Apple recommended syntax, but requires "Enable Modules (C and Objective-C)" in pbxproj
|
|
92
|
-
#import <mParticle_Apple_SDK/mParticle.h> // Works when modules are not enabled
|
|
93
|
-
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
Otherwise, for CocoaPods without `use_frameworks!`, you can use either of these statements:
|
|
88
|
+
Your import statement can be either of these:
|
|
97
89
|
|
|
98
90
|
```objective-c
|
|
99
91
|
#import <mParticle-Apple-SDK/mParticle.h>
|
|
@@ -254,14 +246,6 @@ MParticle.Identity.getUserIdentities((userIdentities) => {
|
|
|
254
246
|
var request = new MParticle.IdentityRequest()
|
|
255
247
|
```
|
|
256
248
|
|
|
257
|
-
**Set** a user Alias to be ran anytime the user’s identity changes
|
|
258
|
-
```js
|
|
259
|
-
request.onUserAlias = (previousUser, newUser) => {
|
|
260
|
-
console.debug(previousUser.userID);
|
|
261
|
-
console.debug(newUser.userID);
|
|
262
|
-
};
|
|
263
|
-
```
|
|
264
|
-
|
|
265
249
|
**Setting** user identities:
|
|
266
250
|
|
|
267
251
|
```js
|
package/android/.classpath
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<classpath>
|
|
3
|
-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-
|
|
3
|
+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-19/"/>
|
|
4
4
|
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
|
|
5
5
|
<classpathentry kind="output" path="bin/default"/>
|
|
6
6
|
</classpath>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -5,7 +5,7 @@ connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
|
|
|
5
5
|
connection.project.dir=
|
|
6
6
|
eclipse.preferences.version=1
|
|
7
7
|
gradle.user.home=
|
|
8
|
-
java.home=/Library/Java/JavaVirtualMachines/
|
|
8
|
+
java.home=/Users/bstalnaker/Library/Java/JavaVirtualMachines/openjdk-19.0.2/Contents/Home
|
|
9
9
|
jvm.arguments=
|
|
10
10
|
offline.mode=false
|
|
11
11
|
override.workspace.settings=true
|
package/android/build.gradle
CHANGED
|
@@ -4,13 +4,13 @@ buildscript {
|
|
|
4
4
|
google()
|
|
5
5
|
}
|
|
6
6
|
dependencies {
|
|
7
|
-
classpath 'com.android.tools.build:gradle:7.
|
|
7
|
+
classpath 'com.android.tools.build:gradle:7.4.2'
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
plugins {
|
|
12
|
-
id "org.sonarqube" version "
|
|
13
|
-
id "org.jlleitschuh.gradle.ktlint" version "11.
|
|
12
|
+
id "org.sonarqube" version "4.4.1.3373"
|
|
13
|
+
id "org.jlleitschuh.gradle.ktlint" version "11.6.1"
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
sonarqube {
|
|
@@ -72,13 +72,13 @@ dependencies {
|
|
|
72
72
|
// compile 'com.mparticle:android-example-kit:REPLACEME'
|
|
73
73
|
//
|
|
74
74
|
|
|
75
|
-
testImplementation 'org.mockito:mockito-core:
|
|
76
|
-
androidTestImplementation 'org.mockito:mockito-android:
|
|
77
|
-
testImplementation 'androidx.annotation:annotation:1.
|
|
75
|
+
testImplementation 'org.mockito:mockito-core:5.8.0'
|
|
76
|
+
androidTestImplementation 'org.mockito:mockito-android:5.8.0'
|
|
77
|
+
testImplementation 'androidx.annotation:annotation:1.7.0'
|
|
78
78
|
|
|
79
79
|
testImplementation 'junit:junit:4.13.2'
|
|
80
80
|
testImplementation files('libs/java-json.jar')
|
|
81
81
|
|
|
82
|
-
testImplementation 'com.mparticle:android-core:5.
|
|
82
|
+
testImplementation 'com.mparticle:android-core:5.54.0'
|
|
83
83
|
testImplementation 'com.facebook.react:react-native:0.20.1'
|
|
84
84
|
}
|
|
@@ -835,6 +835,10 @@ public class MParticleModule extends ReactContextBaseJavaModule {
|
|
|
835
835
|
return MParticle.EventType.UserPreference;
|
|
836
836
|
case 7:
|
|
837
837
|
return MParticle.EventType.Social;
|
|
838
|
+
case 8:
|
|
839
|
+
return MParticle.EventType.Other;
|
|
840
|
+
case 9:
|
|
841
|
+
return MParticle.EventType.Media;
|
|
838
842
|
default:
|
|
839
843
|
return MParticle.EventType.Other;
|
|
840
844
|
}
|
package/js/index.js
CHANGED
package/package.json
CHANGED