mixpanel-react-native 3.2.1 → 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,25 @@
|
|
|
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
|
+
|
|
3
23
|
## [v3.2.0](https://github.com/mixpanel/mixpanel-react-native/tree/v3.2.0) (2026-01-17)
|
|
4
24
|
|
|
5
25
|
### Enhancements
|
|
@@ -552,6 +572,12 @@ This major release removes all remaining calls to Mixpanel's `/decide` API endpo
|
|
|
552
572
|
|
|
553
573
|
|
|
554
574
|
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
|
|
555
581
|
|
|
556
582
|
|
|
557
583
|
|
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
|
}
|