mixpanel-react-native 3.2.0 → 3.3.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,34 @@
|
|
|
1
1
|
#
|
|
2
2
|
|
|
3
|
+
## [v3.3.0](https://github.com/mixpanel/mixpanel-react-native/tree/v3.3.0) (2026-02-17)
|
|
4
|
+
|
|
5
|
+
### Enhancements
|
|
6
|
+
|
|
7
|
+
- Set server URL during initialization using MixpanelOptions [\#368](https://github.com/mixpanel/mixpanel-react-native/pull/368)
|
|
8
|
+
|
|
9
|
+
#
|
|
10
|
+
|
|
11
|
+
## [v3.2.2](https://github.com/mixpanel/mixpanel-react-native/tree/v3.2.2) (2026-01-17)
|
|
12
|
+
|
|
13
|
+
#
|
|
14
|
+
|
|
15
|
+
## [v3.2.1](https://github.com/mixpanel/mixpanel-react-native/tree/v3.2.1) (2026-01-17)
|
|
16
|
+
|
|
17
|
+
### Enhancements
|
|
18
|
+
|
|
19
|
+
- bump android to 8.2.5 [\#355](https://github.com/mixpanel/mixpanel-react-native/pull/355)
|
|
20
|
+
|
|
21
|
+
#
|
|
22
|
+
|
|
23
|
+
## [v3.2.0](https://github.com/mixpanel/mixpanel-react-native/tree/v3.2.0) (2026-01-17)
|
|
24
|
+
|
|
25
|
+
### Enhancements
|
|
26
|
+
|
|
27
|
+
- feat: move async-storage to peerDependencies [\#354](https://github.com/mixpanel/mixpanel-react-native/pull/354)
|
|
28
|
+
- Security: Update dev dependencies and fix npm packaging [\#353](https://github.com/mixpanel/mixpanel-react-native/pull/353)
|
|
29
|
+
|
|
30
|
+
#
|
|
31
|
+
|
|
3
32
|
## [v3.1.3](https://github.com/mixpanel/mixpanel-react-native/tree/v3.1.3) (2025-12-15)
|
|
4
33
|
|
|
5
34
|
### Fixes
|
|
@@ -539,6 +568,14 @@ This major release removes all remaining calls to Mixpanel's `/decide` API endpo
|
|
|
539
568
|
|
|
540
569
|
|
|
541
570
|
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
|
|
542
579
|
|
|
543
580
|
|
|
544
581
|
|
package/android/build.gradle
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
package com.mixpanel.reactnative;
|
|
2
2
|
|
|
3
3
|
import com.mixpanel.android.mpmetrics.MixpanelAPI;
|
|
4
|
+
import com.mixpanel.android.mpmetrics.MixpanelOptions;
|
|
4
5
|
|
|
5
6
|
import com.facebook.react.bridge.Promise;
|
|
6
7
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
@@ -36,8 +37,12 @@ public class MixpanelReactNativeModule extends ReactContextBaseJavaModule {
|
|
|
36
37
|
public void initialize(String token, boolean trackAutomaticEvents, boolean optOutTrackingDefault, ReadableMap metadata, String serverURL, boolean useGzipCompression, Promise promise) throws JSONException {
|
|
37
38
|
JSONObject mixpanelProperties = ReactNativeHelper.reactToJSON(metadata);
|
|
38
39
|
AutomaticProperties.setAutomaticProperties(mixpanelProperties);
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
MixpanelOptions options = new MixpanelOptions.Builder()
|
|
41
|
+
.serverURL(serverURL)
|
|
42
|
+
.optOutTrackingDefault(optOutTrackingDefault)
|
|
43
|
+
.superProperties(mixpanelProperties)
|
|
44
|
+
.build();
|
|
45
|
+
MixpanelAPI instance = MixpanelAPI.getInstance(this.mReactContext, token, trackAutomaticEvents, options);
|
|
41
46
|
if (useGzipCompression) {
|
|
42
47
|
instance.setShouldGzipRequestPayload(true);
|
|
43
48
|
}
|