Skip to content

Commit 3954c17

Browse files
committed
update files to make them compatible with the latest iOS
1 parent 7f74397 commit 3954c17

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

Samples/SimpleMixpanel/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
22
import { Button, SafeAreaView } from "react-native";
33
import { Mixpanel } from 'mixpanel-react-native';
44

5-
const mixpanel = new Mixpanel("Your Project Token");
5+
const mixpanel = new Mixpanel("5d9d3df08d1c34a272abf23d892820bf");
66
mixpanel.init();
77

88
// *************************************

Samples/SimpleMixpanel/ios/Podfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ PODS:
5858
- FlipperKit/FlipperKitNetworkPlugin
5959
- glog (0.3.5)
6060
- libevent (2.1.12)
61-
- Mixpanel-swift (2.9.3):
62-
- Mixpanel-swift/Complete (= 2.9.3)
63-
- Mixpanel-swift/Complete (2.9.3)
64-
- MixpanelReactNative (1.3.0):
65-
- Mixpanel-swift (= 2.9.3)
61+
- Mixpanel-swift (3.0.0.beta.5):
62+
- Mixpanel-swift/Complete (= 3.0.0.beta.5)
63+
- Mixpanel-swift/Complete (3.0.0.beta.5)
64+
- MixpanelReactNative (1.3.3):
65+
- Mixpanel-swift (= 3.0.0.beta.5)
6666
- React
6767
- OpenSSL-Universal (1.1.180)
6868
- RCT-Folly (2020.01.13.00):
@@ -469,8 +469,8 @@ SPEC CHECKSUMS:
469469
FlipperKit: 8a20b5c5fcf9436cac58551dc049867247f64b00
470470
glog: 73c2498ac6884b13ede40eda8228cb1eee9d9d62
471471
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
472-
Mixpanel-swift: 05ab116526c72e0e66a6a2feb9005e933c414347
473-
MixpanelReactNative: f93a2fce77e57eb804f01ced3cc4572d0eff7557
472+
Mixpanel-swift: 4e367aaff204bf7262e9ed665e7b380580cc06c1
473+
MixpanelReactNative: f9506731e609a80d662f924b1c7486f9c2a44426
474474
OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b
475475
RCT-Folly: ec7a233ccc97cc556cf7237f0db1ff65b986f27c
476476
RCTRequired: 6d3e854f0e7260a648badd0d44fc364bc9da9728

ios/Constants.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
struct Constants {
22
static let DEFAULT_FLUSH_INTERVAL = 60.0
3-
static let AUTOMATIC_PUSH_TRACKING = false
43
}

ios/MixpanelReactNative.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ open class MixpanelReactNative: NSObject {
1818
resolver resolve: RCTPromiseResolveBlock,
1919
rejecter reject: RCTPromiseRejectBlock) -> Void {
2020
AutomaticProperties.setAutomaticProperties(properties)
21-
Mixpanel.initialize(token: token, launchOptions: nil, flushInterval: Constants.DEFAULT_FLUSH_INTERVAL, instanceName: token, automaticPushTracking: Constants.AUTOMATIC_PUSH_TRACKING, optOutTrackingByDefault: optOutTrackingByDefault)
21+
Mixpanel.initialize(token: token, flushInterval: Constants.DEFAULT_FLUSH_INTERVAL, instanceName: token, optOutTrackingByDefault: optOutTrackingByDefault)
2222
resolve(true)
2323
}
2424

0 commit comments

Comments
 (0)