react-native-mparticle 2.7.0 → 2.7.1
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.
|
@@ -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
|
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")) {
|
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
|