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 CHANGED
@@ -83,17 +83,9 @@ func application(_ application: UIApplication, didFinishLaunchingWithOptions lau
83
83
 
84
84
  #### Objective-C Example
85
85
 
86
- For apps supporting iOS 8 and above, Apple recommends using the import syntax for **modules** or **semantic import**. However, if you prefer the traditional CocoaPods and static libraries delivery mechanism, that is fully supported as well.
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
- If you are using mParticle as a framework, your import statement will be as follows:
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
@@ -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-11/"/>
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>
@@ -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/adoptopenjdk-11.jdk/Contents/Home
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
@@ -0,0 +1,4 @@
1
+ eclipse.preferences.version=1
2
+ org.eclipse.jdt.core.compiler.codegen.targetPlatform=19
3
+ org.eclipse.jdt.core.compiler.compliance=19
4
+ org.eclipse.jdt.core.compiler.source=19
@@ -4,13 +4,13 @@ buildscript {
4
4
  google()
5
5
  }
6
6
  dependencies {
7
- classpath 'com.android.tools.build:gradle:7.3.1'
7
+ classpath 'com.android.tools.build:gradle:7.4.2'
8
8
  }
9
9
  }
10
10
 
11
11
  plugins {
12
- id "org.sonarqube" version "3.5.0.2730"
13
- id "org.jlleitschuh.gradle.ktlint" version "11.0.0"
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:4.11.0'
76
- androidTestImplementation 'org.mockito:mockito-android:4.11.0'
77
- testImplementation 'androidx.annotation:annotation:1.5.0'
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.49.0'
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
@@ -12,7 +12,8 @@ const EventType = {
12
12
  UserContent: 5,
13
13
  UserPreference: 6,
14
14
  Social: 7,
15
- Other: 8
15
+ Other: 8,
16
+ Media: 9
16
17
  }
17
18
 
18
19
  const UserAttributeType = {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "homepage": "https://www.mparticle.com",
5
5
  "license": "Apache-2.0",
6
6
  "repository": "mParticle/react-native-mparticle",
7
- "version": "2.7.8",
7
+ "version": "2.7.9",
8
8
  "main": "js/index.js",
9
9
  "scripts": {
10
10
  "test": "./node_modules/standard/bin/cmd.js",