mixpanel-react-native 3.0.0 → 3.0.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.
@@ -5,9 +5,9 @@ name: Node.js CI
5
5
 
6
6
  on:
7
7
  push:
8
- branches: [ master ]
8
+ branches: [master]
9
9
  pull_request:
10
- branches: [ master ]
10
+ branches: [master]
11
11
 
12
12
  jobs:
13
13
  test_main_code:
@@ -17,14 +17,14 @@ jobs:
17
17
  node-version: [18.x]
18
18
  # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
19
19
  steps:
20
- - name: Checkout
21
- uses: actions/checkout@v2
22
- - name: Use Node.js ${{ matrix.node-version }}
23
- uses: actions/setup-node@v2
24
- with:
25
- node-version: ${{ matrix.node-version }}
26
- - run: npm install
27
- - run: npm test
20
+ - name: Checkout
21
+ uses: actions/checkout@v2
22
+ - name: Use Node.js ${{ matrix.node-version }}
23
+ uses: actions/setup-node@v2
24
+ with:
25
+ node-version: ${{ matrix.node-version }}
26
+ - run: npm install
27
+ - run: npm test
28
28
 
29
29
  test_android:
30
30
  runs-on: macos-11
@@ -34,25 +34,32 @@ jobs:
34
34
  # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
35
35
 
36
36
  steps:
37
- - name: Checkout
38
- uses: actions/checkout@v2
39
- - name: Use Node.js ${{ matrix.node-version }}
40
- uses: actions/setup-node@v2
41
- with:
42
- node-version: ${{ matrix.node-version }}
43
- - run: npm install
44
- - name: Test Integration - Install dependencies
45
- working-directory: ./Samples/SimpleMixpanel
46
- run: yarn install
47
- - name: Setup Android
48
- uses: reactivecircus/android-emulator-runner@v2
49
- with:
50
- api-level: 21
51
- working-directory: ./Samples/SimpleMixpanel/android
52
- script: ./gradlew
53
- - name: Test Android
54
- working-directory: ./Samples/SimpleMixpanel
55
- run: yarn android
37
+ - name: Checkout
38
+ uses: actions/checkout@v2
39
+ - name: Use Node.js ${{ matrix.node-version }}
40
+ uses: actions/setup-node@v2
41
+ with:
42
+ node-version: ${{ matrix.node-version }}
43
+ - run: npm install
44
+ - name: Test Integration - Install dependencies
45
+ working-directory: ./Samples/SimpleMixpanel
46
+ run: yarn install
47
+ - name: Setup Android
48
+ uses: reactivecircus/android-emulator-runner@v2.20.0
49
+ with:
50
+ api-level: 30
51
+ profile: Nexus 6
52
+ arch: x86_64
53
+ working-directory: ./Samples/SimpleMixpanel/android
54
+ script: ./gradlew
55
+ - name: Test Android
56
+ uses: reactivecircus/android-emulator-runner@v2.20.0
57
+ with:
58
+ api-level: 30
59
+ profile: Nexus 6
60
+ arch: x86_64
61
+ working-directory: ./Samples/SimpleMixpanel
62
+ script: yarn android
56
63
 
57
64
  test_ios:
58
65
  runs-on: macos-latest
@@ -61,20 +68,19 @@ jobs:
61
68
  node-version: [18.x]
62
69
  # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
63
70
  steps:
64
- - name: Checkout
65
- uses: actions/checkout@v2
66
- - name: Use Node.js ${{ matrix.node-version }}
67
- uses: actions/setup-node@v2
68
- with:
69
- node-version: ${{ matrix.node-version }}
70
- - run: npm install
71
- - name: Test Integration - Install dependencies
72
- working-directory: ./Samples/SimpleMixpanel
73
- run: yarn install
74
- - name: Setup iOS
75
- working-directory: ./Samples/SimpleMixpanel/ios
76
- run: pod install --repo-update
77
- - name: Test iOS
78
- working-directory: ./Samples/SimpleMixpanel
79
- run: yarn ios
80
-
71
+ - name: Checkout
72
+ uses: actions/checkout@v2
73
+ - name: Use Node.js ${{ matrix.node-version }}
74
+ uses: actions/setup-node@v2
75
+ with:
76
+ node-version: ${{ matrix.node-version }}
77
+ - run: npm install
78
+ - name: Test Integration - Install dependencies
79
+ working-directory: ./Samples/SimpleMixpanel
80
+ run: yarn install
81
+ - name: Setup iOS
82
+ working-directory: ./Samples/SimpleMixpanel/ios
83
+ run: pod install --repo-update
84
+ - name: Test iOS
85
+ working-directory: ./Samples/SimpleMixpanel
86
+ run: yarn ios
@@ -19,5 +19,5 @@ Pod::Spec.new do |s|
19
19
  s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
20
20
 
21
21
  s.dependency "React-Core"
22
- s.dependency "Mixpanel-swift", '4.2.4'
22
+ s.dependency "Mixpanel-swift", '4.2.5'
23
23
  end
@@ -13,9 +13,9 @@ apply plugin: 'com.android.library'
13
13
  android {
14
14
  compileSdkVersion 33
15
15
  buildToolsVersion "30.0.3"
16
-
16
+
17
17
  def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
18
-
18
+
19
19
  if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
20
20
  namespace "com.mixpanel.reactnative"
21
21
  }
@@ -41,5 +41,5 @@ repositories {
41
41
 
42
42
  dependencies {
43
43
  implementation 'com.facebook.react:react-native:+'
44
- implementation 'com.mixpanel.android:mixpanel-android:7.3.2'
44
+ implementation 'com.mixpanel.android:mixpanel-android:7.5.0'
45
45
  }
@@ -4516,7 +4516,7 @@ To clear all superProperties, use clearSuperProperties()
4516
4516
  <br class="clear">
4517
4517
 
4518
4518
  <footer>
4519
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Mon Apr 08 2024 21:04:12 GMT-0700 (Pacific Daylight Time)
4519
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Thu Apr 11 2024 14:03:23 GMT-0700 (Pacific Daylight Time)
4520
4520
  </footer>
4521
4521
 
4522
4522
  <script> prettyPrint(); </script>
@@ -957,7 +957,7 @@ If the property exists and is not list-valued, the union will be ignored.
957
957
  <br class="clear">
958
958
 
959
959
  <footer>
960
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Mon Apr 08 2024 21:04:12 GMT-0700 (Pacific Daylight Time)
960
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Thu Apr 11 2024 14:03:24 GMT-0700 (Pacific Daylight Time)
961
961
  </footer>
962
962
 
963
963
  <script> prettyPrint(); </script>
package/docs/People.html CHANGED
@@ -1625,7 +1625,7 @@ If the property exists and is not list-valued, the union will be ignored.
1625
1625
  <br class="clear">
1626
1626
 
1627
1627
  <footer>
1628
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Mon Apr 08 2024 21:04:12 GMT-0700 (Pacific Daylight Time)
1628
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Thu Apr 11 2024 14:03:24 GMT-0700 (Pacific Daylight Time)
1629
1629
  </footer>
1630
1630
 
1631
1631
  <script> prettyPrint(); </script>
package/docs/index.html CHANGED
@@ -180,7 +180,7 @@ Please refer to our <a href="https://mixpanel.com/legal/app-store-privacy-detai
180
180
  <br class="clear">
181
181
 
182
182
  <footer>
183
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Mon Apr 08 2024 21:04:12 GMT-0700 (Pacific Daylight Time)
183
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Thu Apr 11 2024 14:03:23 GMT-0700 (Pacific Daylight Time)
184
184
  </footer>
185
185
 
186
186
  <script> prettyPrint(); </script>
@@ -328,7 +328,7 @@ export class Mixpanel {
328
328
  if (!ObjectHelper.isValidOrUndefined(properties)) {
329
329
  ObjectHelper.raiseError(PARAMS.PROPERTIES);
330
330
  }
331
- MixpanelReactNative.track(this.token, eventName, {
331
+ this.mixpanelImpl.track(this.token, eventName, {
332
332
  ...Helper.getMetaData(),
333
333
  ...properties,
334
334
  });
@@ -371,7 +371,7 @@ export class Mixpanel {
371
371
  if (!ObjectHelper.isValidOrUndefined(properties)) {
372
372
  ObjectHelper.raiseError(PARAMS.PROPERTIES);
373
373
  }
374
- MixpanelReactNative.trackWithGroups(
374
+ this.mixpanelImpl.trackWithGroups(
375
375
  this.token,
376
376
  eventName,
377
377
  {
@@ -1048,7 +1048,7 @@ class ObjectHelper {
1048
1048
  <br class="clear">
1049
1049
 
1050
1050
  <footer>
1051
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Mon Apr 08 2024 21:04:12 GMT-0700 (Pacific Daylight Time)
1051
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Thu Apr 11 2024 14:03:23 GMT-0700 (Pacific Daylight Time)
1052
1052
  </footer>
1053
1053
 
1054
1054
  <script> prettyPrint(); </script>
package/index.js CHANGED
@@ -300,7 +300,7 @@ export class Mixpanel {
300
300
  if (!ObjectHelper.isValidOrUndefined(properties)) {
301
301
  ObjectHelper.raiseError(PARAMS.PROPERTIES);
302
302
  }
303
- MixpanelReactNative.track(this.token, eventName, {
303
+ this.mixpanelImpl.track(this.token, eventName, {
304
304
  ...Helper.getMetaData(),
305
305
  ...properties,
306
306
  });
@@ -343,7 +343,7 @@ export class Mixpanel {
343
343
  if (!ObjectHelper.isValidOrUndefined(properties)) {
344
344
  ObjectHelper.raiseError(PARAMS.PROPERTIES);
345
345
  }
346
- MixpanelReactNative.trackWithGroups(
346
+ this.mixpanelImpl.trackWithGroups(
347
347
  this.token,
348
348
  eventName,
349
349
  {
@@ -0,0 +1,24 @@
1
+ {
2
+ "keep": {
3
+ "days": true,
4
+ "amount": 14
5
+ },
6
+ "auditLog": "/Users/zihejia/Documents/Projects/Develop/mixpanel-react-native-original/logs/.b11bf985d66a037ca5688a574653f3bf76a28dfa-audit.json",
7
+ "files": [
8
+ {
9
+ "date": 1712642656268,
10
+ "name": "/Users/zihejia/Documents/Projects/Develop/mixpanel-react-native-original/logs/keplerCliNative-2024-04-08.log",
11
+ "hash": "4a7d6370cb36e50ee6bfb367c333ac6a"
12
+ },
13
+ {
14
+ "date": 1712687544944,
15
+ "name": "/Users/zihejia/Documents/Projects/Develop/mixpanel-react-native-original/logs/keplerCliNative-2024-04-09.log",
16
+ "hash": "4454643b08fa4b3a09ef5d6539ee436a"
17
+ },
18
+ {
19
+ "date": 1712859288027,
20
+ "name": "/Users/zihejia/Documents/Projects/Develop/mixpanel-react-native-original/logs/keplerCliNative-2024-04-11.log",
21
+ "hash": "049536ba3b6998b543a89803a4423598"
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "keep": {
3
+ "days": true,
4
+ "amount": 14
5
+ },
6
+ "auditLog": "/Users/zihejia/Documents/Projects/Develop/mixpanel-react-native-original/logs/.c366df74eeb671df60a57a2075ae40a3dae2af25-audit.json",
7
+ "files": [
8
+ {
9
+ "date": 1712642656243,
10
+ "name": "/Users/zihejia/Documents/Projects/Develop/mixpanel-react-native-original/logs/error-2024-04-08.log",
11
+ "hash": "0f4712568f4da458d9d03b0df7856865"
12
+ },
13
+ {
14
+ "date": 1712687544940,
15
+ "name": "/Users/zihejia/Documents/Projects/Develop/mixpanel-react-native-original/logs/error-2024-04-09.log",
16
+ "hash": "696a149d3d034bc6ffa19d00855be047"
17
+ },
18
+ {
19
+ "date": 1712859288022,
20
+ "name": "/Users/zihejia/Documents/Projects/Develop/mixpanel-react-native-original/logs/error-2024-04-11.log",
21
+ "hash": "2dc3b93023786f58062d972dec596a7e"
22
+ }
23
+ ]
24
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mixpanel-react-native",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Official React Native Tracking Library for Mixpanel Analytics",
5
5
  "main": "index.js",
6
6
  "scripts": {