mixpanel-react-native 2.0.1 → 2.2.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  #
2
2
 
3
+ ## [v2.2.0](https://github.com/mixpanel/mixpanel-react-native/tree/v2.2.0) (2023-03-06)
4
+
5
+ ### NOTE:
6
+ - From this version we will prefix randomly generated device-specific distinct_ids with "$device:". The prefix is applied the next time a new random ID is generated, any IDs generated by previous SDK versions and persisted on the device will continue to be used as-is until reset is called to generate a new ID. This does not change the value sent for the $device_id property, which will continue to be the randomly-generated ID without a prefix. Mixpanel's $identify endpoint has been updated to accept UUIDs with this prefix to coordinate with this change.
7
+
8
+
9
+ ### Enhancements
10
+
11
+ - bump ios to 4.0.5 and android to 7.3.0 [\#176](https://github.com/mixpanel/mixpanel-react-native/pull/176)
12
+
13
+ #
14
+
15
+ ## [v2.1.0](https://github.com/mixpanel/mixpanel-react-native/tree/v2.1.0) (2022-09-14)
16
+
17
+ ### Enhancements
18
+
19
+ - add serverURL to init params and fix Android module [\#160](https://github.com/mixpanel/mixpanel-react-native/pull/160)
20
+
21
+ #
22
+
3
23
  ## [v2.0.1](https://github.com/mixpanel/mixpanel-react-native/tree/v2.0.1) (2022-09-12)
4
24
 
5
25
  ### Fixes
@@ -236,6 +256,10 @@ Report issues or give us any feedback is appreciated!
236
256
 
237
257
 
238
258
 
259
+
260
+
261
+
262
+
239
263
 
240
264
 
241
265
 
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
10
10
  s.license = package['license']
11
11
  s.author = { 'Mixpanel, Inc' => 'support@mixpanel.com' }
12
12
  s.homepage = package['homepage']
13
- s.platform = :ios, "9.0"
13
+ s.platform = :ios, "11.0"
14
14
  s.swift_version = '5.0'
15
15
  s.source = { :git => "https://github.com/mixpanel/mixpanel-react-native.git", :tag => s.version }
16
16
  s.source_files = "ios/*.{swift,h,m}"
@@ -18,6 +18,6 @@ Pod::Spec.new do |s|
18
18
  s.preserve_paths = 'LICENSE', 'README.md', 'package.json', 'index.js'
19
19
  s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
20
20
 
21
- s.dependency "React"
22
- s.dependency "Mixpanel-swift", '4.0.1'
21
+ s.dependency "React-Core"
22
+ s.dependency "Mixpanel-swift", '4.0.5'
23
23
  end
@@ -0,0 +1,28 @@
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.buildship.core.gradleprojectbuilder</name>
10
+ <arguments>
11
+ </arguments>
12
+ </buildCommand>
13
+ </buildSpec>
14
+ <natures>
15
+ <nature>org.eclipse.buildship.core.gradleprojectnature</nature>
16
+ </natures>
17
+ <filteredResources>
18
+ <filter>
19
+ <id>1632526110612</id>
20
+ <name></name>
21
+ <type>30</type>
22
+ <matcher>
23
+ <id>org.eclipse.core.resources.regexFilterMatcher</id>
24
+ <arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
25
+ </matcher>
26
+ </filter>
27
+ </filteredResources>
28
+ </projectDescription>
@@ -494,6 +494,7 @@
494
494
  CURRENT_PROJECT_VERSION = 1;
495
495
  ENABLE_BITCODE = NO;
496
496
  INFOPLIST_FILE = ContextAPIMixpanel/Info.plist;
497
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
497
498
  LD_RUNPATH_SEARCH_PATHS = (
498
499
  "$(inherited)",
499
500
  "@executable_path/Frameworks",
@@ -520,6 +521,7 @@
520
521
  CLANG_ENABLE_MODULES = YES;
521
522
  CURRENT_PROJECT_VERSION = 1;
522
523
  INFOPLIST_FILE = ContextAPIMixpanel/Info.plist;
524
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
523
525
  LD_RUNPATH_SEARCH_PATHS = (
524
526
  "$(inherited)",
525
527
  "@executable_path/Frameworks",
@@ -1,7 +1,7 @@
1
1
  require_relative '../node_modules/react-native/scripts/react_native_pods'
2
2
  require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
3
3
 
4
- platform :ios, '10.0'
4
+ platform :ios, '11.0'
5
5
 
6
6
  target 'ContextAPIMixpanel' do
7
7
  config = use_native_modules!
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "mixpanel-react-native": "file:../..",
14
14
  "react": "17.0.1",
15
- "react-native": "0.64.2"
15
+ "react-native": "0.64.4"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@babel/core": "^7.14.8",
@@ -0,0 +1,28 @@
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.buildship.core.gradleprojectbuilder</name>
10
+ <arguments>
11
+ </arguments>
12
+ </buildCommand>
13
+ </buildSpec>
14
+ <natures>
15
+ <nature>org.eclipse.buildship.core.gradleprojectnature</nature>
16
+ </natures>
17
+ <filteredResources>
18
+ <filter>
19
+ <id>1632526110615</id>
20
+ <name></name>
21
+ <type>30</type>
22
+ <matcher>
23
+ <id>org.eclipse.core.resources.regexFilterMatcher</id>
24
+ <arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
25
+ </matcher>
26
+ </filter>
27
+ </filteredResources>
28
+ </projectDescription>
@@ -665,6 +665,7 @@
665
665
  CURRENT_PROJECT_VERSION = 1;
666
666
  ENABLE_BITCODE = NO;
667
667
  INFOPLIST_FILE = MixpanelDemo/Info.plist;
668
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
668
669
  LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
669
670
  OTHER_LDFLAGS = (
670
671
  "$(inherited)",
@@ -688,6 +689,7 @@
688
689
  CLANG_ENABLE_MODULES = YES;
689
690
  CURRENT_PROJECT_VERSION = 1;
690
691
  INFOPLIST_FILE = MixpanelDemo/Info.plist;
692
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
691
693
  LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
692
694
  OTHER_LDFLAGS = (
693
695
  "$(inherited)",
@@ -1,7 +1,7 @@
1
1
  require_relative '../node_modules/react-native/scripts/react_native_pods'
2
2
  require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
3
3
 
4
- platform :ios, '10.0'
4
+ platform :ios, '11.0'
5
5
 
6
6
  target 'MixpanelDemo' do
7
7
  config = use_native_modules!
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "mixpanel-react-native": "file:../..",
14
14
  "react": "17.0.1",
15
- "react-native": "0.64.1",
15
+ "react-native": "0.64.4",
16
16
  "react-native-gesture-handler": "^1.8.0",
17
17
  "react-native-interactable": "^2.0.1",
18
18
  "react-native-ionicons": "^4.6.5",
@@ -0,0 +1,28 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <projectDescription>
3
+ <name>SimpleMixpanel</name>
4
+ <comment>Project android created by Buildship.</comment>
5
+ <projects>
6
+ </projects>
7
+ <buildSpec>
8
+ <buildCommand>
9
+ <name>org.eclipse.buildship.core.gradleprojectbuilder</name>
10
+ <arguments>
11
+ </arguments>
12
+ </buildCommand>
13
+ </buildSpec>
14
+ <natures>
15
+ <nature>org.eclipse.buildship.core.gradleprojectnature</nature>
16
+ </natures>
17
+ <filteredResources>
18
+ <filter>
19
+ <id>0</id>
20
+ <name></name>
21
+ <type>30</type>
22
+ <matcher>
23
+ <id>org.eclipse.core.resources.regexFilterMatcher</id>
24
+ <arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
25
+ </matcher>
26
+ </filter>
27
+ </filteredResources>
28
+ </projectDescription>
@@ -1,7 +1,7 @@
1
1
  require_relative '../node_modules/react-native/scripts/react_native_pods'
2
2
  require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
3
3
 
4
- platform :ios, '10.0'
4
+ platform :ios, '11.0'
5
5
 
6
6
  target 'SimpleMixpanel' do
7
7
  config = use_native_modules!
@@ -443,7 +443,7 @@
443
443
  "$(inherited)",
444
444
  );
445
445
  INFOPLIST_FILE = SimpleMixpanelTests/Info.plist;
446
- IPHONEOS_DEPLOYMENT_TARGET = 10.0;
446
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
447
447
  LD_RUNPATH_SEARCH_PATHS = (
448
448
  "$(inherited)",
449
449
  "@executable_path/Frameworks",
@@ -468,7 +468,7 @@
468
468
  BUNDLE_LOADER = "$(TEST_HOST)";
469
469
  COPY_PHASE_STRIP = NO;
470
470
  INFOPLIST_FILE = SimpleMixpanelTests/Info.plist;
471
- IPHONEOS_DEPLOYMENT_TARGET = 10.0;
471
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
472
472
  LD_RUNPATH_SEARCH_PATHS = (
473
473
  "$(inherited)",
474
474
  "@executable_path/Frameworks",
@@ -494,6 +494,7 @@
494
494
  CURRENT_PROJECT_VERSION = 1;
495
495
  ENABLE_BITCODE = NO;
496
496
  INFOPLIST_FILE = SimpleMixpanel/Info.plist;
497
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
497
498
  LD_RUNPATH_SEARCH_PATHS = (
498
499
  "$(inherited)",
499
500
  "@executable_path/Frameworks",
@@ -520,6 +521,7 @@
520
521
  CLANG_ENABLE_MODULES = YES;
521
522
  CURRENT_PROJECT_VERSION = 1;
522
523
  INFOPLIST_FILE = SimpleMixpanel/Info.plist;
524
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
523
525
  LD_RUNPATH_SEARCH_PATHS = (
524
526
  "$(inherited)",
525
527
  "@executable_path/Frameworks",
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "mixpanel-react-native": "file:../..",
14
14
  "react": "17.0.1",
15
- "react-native": "0.64.2"
15
+ "react-native": "0.64.4"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@babel/core": "^7.14.8",
@@ -9,13 +9,13 @@ import { NativeModules } from 'react-native';
9
9
 
10
10
  test(`it calls MixpanelReactNative initialize`, async () => {
11
11
  const mixpanel = await Mixpanel.init("token", true);
12
- expect(NativeModules.MixpanelReactNative.initialize).toBeCalledWith("token", true, false, {"$lib_version": "2.0.1", "mp_lib": "react-native"});
12
+ expect(NativeModules.MixpanelReactNative.initialize).toBeCalledWith("token", true, false, {"$lib_version": "2.2.0", "mp_lib": "react-native"});
13
13
  });
14
14
 
15
15
  test(`it calls MixpanelReactNative initialize with optOut and superProperties`, async () => {
16
16
  const mixpanel = new Mixpanel("token", true);
17
17
  mixpanel.init(true, {"super": "property"})
18
- expect(NativeModules.MixpanelReactNative.initialize).toBeCalledWith("token", true, true, {"$lib_version": "2.0.1", "mp_lib": "react-native", "super": "property"});
18
+ expect(NativeModules.MixpanelReactNative.initialize).toBeCalledWith("token", true, true, {"$lib_version": "2.2.0", "mp_lib": "react-native", "super": "property"}, "https://api.mixpanel.com");
19
19
  });
20
20
 
21
21
  test(`it calls MixpanelReactNative setServerURL`, async () => {
@@ -34,5 +34,5 @@ repositories {
34
34
 
35
35
  dependencies {
36
36
  implementation 'com.facebook.react:react-native:+'
37
- implementation 'com.mixpanel.android:mixpanel-android:7.0.1'
37
+ implementation 'com.mixpanel.android:mixpanel-android:7.3.0'
38
38
  }