react-native-mparticle 2.7.0 → 2.7.3
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/.github/workflows/pull-request.yml +31 -0
- package/android/.classpath +6 -0
- package/android/.gradle/5.4.1/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/5.4.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/5.4.1/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/.project +34 -0
- package/android/.settings/org.eclipse.buildship.core.prefs +13 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/mparticle/react/MParticleModule.java +2 -2
- package/ios/RNMParticle/RNMParticle.m +2 -0
- package/ios/RNMParticle.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/RNMParticle.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/RNMParticle.xcodeproj/project.xcworkspace/xcuserdata/bstalnaker.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/RNMParticle.xcodeproj/xcuserdata/bstalnaker.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +6 -0
- package/ios/RNMParticle.xcodeproj/xcuserdata/bstalnaker.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/package.json +1 -1
- package/react-native-mparticle.podspec +1 -0
- package/.github/workflows/react-ci.yml +0 -22
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: "Build and Test"
|
|
2
|
+
|
|
3
|
+
on: [pull_request, push]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
js-tests:
|
|
7
|
+
name: "JS Tests"
|
|
8
|
+
runs-on: macOS-latest
|
|
9
|
+
steps:
|
|
10
|
+
- name: "Checkout"
|
|
11
|
+
uses: actions/checkout@v2
|
|
12
|
+
- uses: actions/setup-node@master
|
|
13
|
+
- uses: c-hive/gha-yarn-cache@v1
|
|
14
|
+
|
|
15
|
+
- name: "Install node modules"
|
|
16
|
+
run: |
|
|
17
|
+
yarn install
|
|
18
|
+
|
|
19
|
+
- name: "Run test"
|
|
20
|
+
run: |
|
|
21
|
+
yarn test
|
|
22
|
+
android-unit-tests:
|
|
23
|
+
name: "Android Unit Tests"
|
|
24
|
+
runs-on: ubuntu-18.04
|
|
25
|
+
steps:
|
|
26
|
+
- name: "Checkout"
|
|
27
|
+
uses: actions/checkout@v2
|
|
28
|
+
|
|
29
|
+
- name: "Run Android Unit Tests"
|
|
30
|
+
working-directory: android
|
|
31
|
+
run: ./gradlew test
|
|
@@ -0,0 +1,6 @@
|
|
|
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>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
package/android/.project
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
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>
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
package/android/build.gradle
CHANGED
|
@@ -47,7 +47,7 @@ dependencies {
|
|
|
47
47
|
//
|
|
48
48
|
// (See https://github.com/mparticle/mparticle-android-sdk for the latest version)
|
|
49
49
|
//
|
|
50
|
-
compileOnly 'com.mparticle:android-core:[5.9.3,
|
|
50
|
+
compileOnly 'com.mparticle:android-core:[5.9.3, )'
|
|
51
51
|
|
|
52
52
|
//
|
|
53
53
|
// And, if you want to include kits, you can do so as follows:
|
|
@@ -68,7 +68,7 @@ public class MParticleModule extends ReactContextBaseJavaModule {
|
|
|
68
68
|
MParticle.EventType eventType = ConvertEventType(type);
|
|
69
69
|
|
|
70
70
|
MPEvent event = new MPEvent.Builder(name, eventType)
|
|
71
|
-
.
|
|
71
|
+
.customAttributes(attributes)
|
|
72
72
|
.build();
|
|
73
73
|
MParticle.getInstance().logEvent(event);
|
|
74
74
|
}
|
|
@@ -510,7 +510,7 @@ public class MParticleModule extends ReactContextBaseJavaModule {
|
|
|
510
510
|
if (map.hasKey("info")) {
|
|
511
511
|
ReadableMap customInfoMap = map.getMap("info");
|
|
512
512
|
Map<String, String> customInfo = ConvertStringMap(customInfoMap);
|
|
513
|
-
builder.
|
|
513
|
+
builder.customAttributes(customInfo);
|
|
514
514
|
}
|
|
515
515
|
|
|
516
516
|
if (map.hasKey("customFlags")) {
|
|
@@ -96,6 +96,7 @@ RCT_EXPORT_METHOD(removeCCPAConsentState)
|
|
|
96
96
|
user.consentState = consentState;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
#if TARGET_OS_IOS == 1
|
|
99
100
|
RCT_EXPORT_METHOD(logPushRegistration:(NSString *)iosToken androidField:(NSString *)androidField)
|
|
100
101
|
{
|
|
101
102
|
if (iosToken != nil) {
|
|
@@ -104,6 +105,7 @@ RCT_EXPORT_METHOD(logPushRegistration:(NSString *)iosToken androidField:(NSStrin
|
|
|
104
105
|
instance.pushNotificationToken = pushTokenData;
|
|
105
106
|
}
|
|
106
107
|
}
|
|
108
|
+
#endif
|
|
107
109
|
|
|
108
110
|
RCT_EXPORT_METHOD(isKitActive:(nonnull NSNumber*)kitId completion:(RCTResponseSenderBlock)completion)
|
|
109
111
|
{
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
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>
|
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
name: Continuous Integration
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
push:
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
build:
|
|
9
|
-
runs-on: macOS-latest
|
|
10
|
-
steps:
|
|
11
|
-
- name: Checkout
|
|
12
|
-
uses: actions/checkout@v2
|
|
13
|
-
- uses: actions/setup-node@master
|
|
14
|
-
- uses: c-hive/gha-yarn-cache@v1
|
|
15
|
-
|
|
16
|
-
- name: Install node modules
|
|
17
|
-
run: |
|
|
18
|
-
yarn install
|
|
19
|
-
|
|
20
|
-
- name: Run test
|
|
21
|
-
run: |
|
|
22
|
-
yarn test
|