react-native-mparticle 2.7.2 → 2.7.5

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.
@@ -587,7 +587,7 @@ public class MParticleModule extends ReactContextBaseJavaModule {
587
587
  Promotion promotion = ConvertPromotion(promotionMap);
588
588
  builder = new CommerceEvent.Builder(promotionAction, promotion);
589
589
 
590
- for (int i = 0; i < promotionsReadableArray.size(); ++i) {
590
+ for (int i = 1; i < promotionsReadableArray.size(); ++i) {
591
591
  promotionMap = promotionsReadableArray.getMap(i);
592
592
  promotion = ConvertPromotion(promotionMap);
593
593
  builder.addPromotion(promotion);
@@ -599,7 +599,7 @@ public class MParticleModule extends ReactContextBaseJavaModule {
599
599
  Impression impression = ConvertImpression(impressionMap);
600
600
  builder = new CommerceEvent.Builder(impression);
601
601
 
602
- for (int i = 0; i < impressionsArray.size(); ++i) {
602
+ for (int i = 1; i < impressionsArray.size(); ++i) {
603
603
  impressionMap = impressionsArray.getMap(i);
604
604
  impression = ConvertImpression(impressionMap);
605
605
  builder.addImpression(impression);
@@ -5,6 +5,7 @@ import android.support.annotation.Nullable;
5
5
 
6
6
  import com.mparticle.MParticle;
7
7
  import com.mparticle.UserAttributeListener;
8
+ import com.mparticle.UserAttributeListenerType;
8
9
  import com.mparticle.consent.ConsentState;
9
10
  import com.mparticle.identity.MParticleUser;
10
11
 
@@ -33,7 +34,7 @@ public class MockMParticleUser implements MParticleUser {
33
34
 
34
35
  @Nullable
35
36
  @Override
36
- public Map<String, Object> getUserAttributes(@Nullable UserAttributeListener userAttributeListener) {
37
+ public Map<String, Object> getUserAttributes(@Nullable UserAttributeListenerType userAttributeListener) {
37
38
  return null;
38
39
  }
39
40
 
@@ -59,7 +60,7 @@ public class MockMParticleUser implements MParticleUser {
59
60
  }
60
61
 
61
62
  @Override
62
- public boolean incrementUserAttribute(@NonNull String s, int i) {
63
+ public boolean incrementUserAttribute(@NonNull String s, Number i) {
63
64
  return false;
64
65
  }
65
66
 
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.2",
7
+ "version": "2.7.5",
8
8
  "main": "js/index.js",
9
9
  "scripts": {
10
10
  "test": "./node_modules/standard/bin/cmd.js",
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
11
11
 
12
12
  s.homepage = package['homepage']
13
13
  s.license = package['license']
14
- s.platform = :ios, "9.0"
14
+ s.platforms = { :ios => "9.0", :tvos => "9.2" }
15
15
 
16
16
  s.source = { :git => "https://github.com/mParticle/react-native-mparticle.git", :tag => "#{s.version}" }
17
17
  s.source_files = "ios/**/*.{h,m}"
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <classpath>
3
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11/"/>
4
- <classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
5
- <classpathentry kind="output" path="bin/default"/>
6
- </classpath>
File without changes
@@ -1,2 +0,0 @@
1
- #Wed Mar 17 12:51:17 EDT 2021
2
- gradle.version=5.4.1
File without changes
package/android/.project DELETED
@@ -1,34 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <projectDescription>
3
- <name>android</name>
4
- <comment>Project android created by Buildship.</comment>
5
- <projects>
6
- </projects>
7
- <buildSpec>
8
- <buildCommand>
9
- <name>org.eclipse.jdt.core.javabuilder</name>
10
- <arguments>
11
- </arguments>
12
- </buildCommand>
13
- <buildCommand>
14
- <name>org.eclipse.buildship.core.gradleprojectbuilder</name>
15
- <arguments>
16
- </arguments>
17
- </buildCommand>
18
- </buildSpec>
19
- <natures>
20
- <nature>org.eclipse.jdt.core.javanature</nature>
21
- <nature>org.eclipse.buildship.core.gradleprojectnature</nature>
22
- </natures>
23
- <filteredResources>
24
- <filter>
25
- <id>1630678802180</id>
26
- <name></name>
27
- <type>30</type>
28
- <matcher>
29
- <id>org.eclipse.core.resources.regexFilterMatcher</id>
30
- <arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
31
- </matcher>
32
- </filter>
33
- </filteredResources>
34
- </projectDescription>
@@ -1,13 +0,0 @@
1
- arguments=
2
- auto.sync=false
3
- build.scans.enabled=false
4
- connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
5
- connection.project.dir=
6
- eclipse.preferences.version=1
7
- gradle.user.home=
8
- java.home=/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
9
- jvm.arguments=
10
- offline.mode=false
11
- override.workspace.settings=true
12
- show.console.view=true
13
- show.executions.view=true
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Workspace
3
- version = "1.0">
4
- <FileRef
5
- location = "self:">
6
- </FileRef>
7
- </Workspace>
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>IDEDidComputeMac32BitWarning</key>
6
- <true/>
7
- </dict>
8
- </plist>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Bucket
3
- uuid = "39402CF6-7BAB-4033-9C4A-41AE5477C134"
4
- type = "1"
5
- version = "2.0">
6
- </Bucket>
@@ -1,14 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>SchemeUserState</key>
6
- <dict>
7
- <key>RNMParticle.xcscheme_^#shared#^_</key>
8
- <dict>
9
- <key>orderHint</key>
10
- <integer>0</integer>
11
- </dict>
12
- </dict>
13
- </dict>
14
- </plist>