mixpanel-react-native 3.0.2 → 3.0.4
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/.github/workflows/node.js.yml +10 -3
- package/CHANGELOG.md +30 -0
- package/MixpanelReactNative.podspec +1 -1
- package/README.md +28 -3
- package/Samples/MixpanelExpo/package.json +1 -1
- package/Samples/MixpanelExpo/yarn.lock +7052 -0
- package/Samples/SimpleMixpanel/{App.js → App.tsx} +8 -8
- package/Samples/SimpleMixpanel/Gemfile +9 -0
- package/Samples/SimpleMixpanel/README.md +79 -0
- package/Samples/SimpleMixpanel/__tests__/{App-test.js → App.test.tsx} +3 -0
- package/Samples/SimpleMixpanel/android/app/build.gradle +58 -162
- package/Samples/SimpleMixpanel/android/app/src/debug/AndroidManifest.xml +1 -5
- package/Samples/SimpleMixpanel/android/app/src/main/AndroidManifest.xml +4 -4
- package/Samples/SimpleMixpanel/android/app/src/main/java/com/simplemixpanel/MainActivity.kt +22 -0
- package/Samples/SimpleMixpanel/android/app/src/main/java/com/simplemixpanel/MainApplication.kt +43 -0
- package/Samples/SimpleMixpanel/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
- package/Samples/SimpleMixpanel/android/app/src/main/res/values/styles.xml +1 -1
- package/Samples/SimpleMixpanel/android/build.gradle +11 -28
- package/Samples/SimpleMixpanel/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/Samples/SimpleMixpanel/android/gradle/wrapper/gradle-wrapper.properties +3 -1
- package/Samples/SimpleMixpanel/android/gradle.properties +17 -4
- package/Samples/SimpleMixpanel/android/gradlew +173 -109
- package/Samples/SimpleMixpanel/android/gradlew.bat +92 -89
- package/Samples/SimpleMixpanel/android/settings.gradle +1 -0
- package/Samples/SimpleMixpanel/app.json +1 -1
- package/Samples/SimpleMixpanel/babel.config.js +1 -1
- package/Samples/SimpleMixpanel/ios/.xcode.env +11 -0
- package/Samples/SimpleMixpanel/ios/Podfile +24 -13
- package/Samples/SimpleMixpanel/ios/Podfile.lock +1414 -0
- package/Samples/SimpleMixpanel/ios/SimpleMixpanel/AppDelegate.h +2 -4
- package/Samples/SimpleMixpanel/ios/SimpleMixpanel/AppDelegate.mm +31 -0
- package/Samples/SimpleMixpanel/ios/SimpleMixpanel/Images.xcassets/AppIcon.appiconset/Contents.json +30 -15
- package/Samples/SimpleMixpanel/ios/SimpleMixpanel/Info.plist +8 -11
- package/Samples/SimpleMixpanel/ios/SimpleMixpanel/PrivacyInfo.xcprivacy +38 -0
- package/Samples/SimpleMixpanel/ios/SimpleMixpanel/main.m +2 -1
- package/Samples/SimpleMixpanel/ios/SimpleMixpanel.xcodeproj/project.pbxproj +130 -114
- package/Samples/SimpleMixpanel/ios/SimpleMixpanelTests/SimpleMixpanelTests.m +14 -13
- package/Samples/SimpleMixpanel/jest.config.js +3 -0
- package/Samples/SimpleMixpanel/metro.config.js +7 -13
- package/Samples/SimpleMixpanel/package.json +23 -15
- package/Samples/SimpleMixpanel/tsconfig.json +3 -0
- package/Samples/SimpleMixpanel/yarn.lock +6814 -0
- package/__tests__/jest_setup.js +3 -3
- package/android/build.gradle +1 -1
- package/docs/Mixpanel.html +33 -33
- package/docs/MixpanelGroup.html +7 -7
- package/docs/People.html +12 -12
- package/docs/index.html +26 -3
- package/docs/index.js.html +8 -18
- package/index.d.ts +10 -2
- package/index.js +7 -17
- package/javascript/mixpanel-main.js +1 -1
- package/javascript/mixpanel-network.js +2 -2
- package/javascript/mixpanel-persistent.js +0 -2
- package/package.json +1 -1
- package/Samples/ContextAPIMixpanel/android/.project +0 -28
- package/Samples/MixpanelDemo/android/.project +0 -28
- package/Samples/SimpleMixpanel/.buckconfig +0 -6
- package/Samples/SimpleMixpanel/.editorconfig +0 -3
- package/Samples/SimpleMixpanel/.eslintrc.js +0 -4
- package/Samples/SimpleMixpanel/.flowconfig +0 -66
- package/Samples/SimpleMixpanel/.gitattributes +0 -3
- package/Samples/SimpleMixpanel/.prettierrc.js +0 -7
- package/Samples/SimpleMixpanel/.watchmanconfig +0 -1
- package/Samples/SimpleMixpanel/android/.project +0 -28
- package/Samples/SimpleMixpanel/android/app/BUCK +0 -55
- package/Samples/SimpleMixpanel/android/app/build_defs.bzl +0 -19
- package/Samples/SimpleMixpanel/android/app/src/debug/java/com/simplemixpanel/ReactNativeFlipper.java +0 -72
- package/Samples/SimpleMixpanel/android/app/src/main/java/com/simplemixpanel/MainActivity.java +0 -15
- package/Samples/SimpleMixpanel/android/app/src/main/java/com/simplemixpanel/MainApplication.java +0 -80
- package/Samples/SimpleMixpanel/ios/File.swift +0 -8
- package/Samples/SimpleMixpanel/ios/SimpleMixpanel/AppDelegate.m +0 -62
- package/Samples/SimpleMixpanel/ios/SimpleMixpanel-Bridging-Header.h +0 -4
- package/Samples/SimpleMixpanel/ios/SimpleMixpanel.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/android/bin/.gradle/5.5/executionHistory/executionHistory.lock +0 -0
- package/android/bin/.gradle/5.5/fileChanges/last-build.bin +0 -0
- package/android/bin/.gradle/5.5/fileHashes/fileHashes.bin +0 -0
- package/android/bin/.gradle/5.5/fileHashes/fileHashes.lock +0 -0
- package/android/bin/.gradle/5.5/gc.properties +0 -0
- package/android/bin/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/bin/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/bin/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/bin/.gradle/vcs-1/gc.properties +0 -0
- package/android/bin/.idea/caches/build_file_checksums.ser +0 -0
- package/android/bin/.idea/compiler.xml +0 -6
- package/android/bin/.idea/gradle.xml +0 -21
- package/android/bin/.idea/jarRepositories.xml +0 -30
- package/android/bin/.idea/libraries/Gradle__com_android_support_appcompat_v7_23_0_1_aar.xml +0 -16
- package/android/bin/.idea/libraries/Gradle__com_android_support_recyclerview_v7_23_0_1_aar.xml +0 -13
- package/android/bin/.idea/libraries/Gradle__com_android_support_support_annotations_23_0_1.xml +0 -11
- package/android/bin/.idea/libraries/Gradle__com_android_support_support_v4_23_0_1_aar.xml +0 -17
- package/android/bin/.idea/libraries/Gradle__com_facebook_fresco_drawee_0_8_1_aar.xml +0 -13
- package/android/bin/.idea/libraries/Gradle__com_facebook_fresco_fbcore_0_8_1_aar.xml +0 -13
- package/android/bin/.idea/libraries/Gradle__com_facebook_fresco_fresco_0_8_1_aar.xml +0 -13
- package/android/bin/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_0_8_1_aar.xml +0 -13
- package/android/bin/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_okhttp_0_8_1_aar.xml +0 -13
- package/android/bin/.idea/libraries/Gradle__com_facebook_react_react_native_0_20_1_aar.xml +0 -17
- package/android/bin/.idea/libraries/Gradle__com_facebook_stetho_stetho_1_2_0.xml +0 -11
- package/android/bin/.idea/libraries/Gradle__com_facebook_stetho_stetho_okhttp_1_2_0.xml +0 -11
- package/android/bin/.idea/libraries/Gradle__com_fasterxml_jackson_core_jackson_core_2_2_3.xml +0 -11
- package/android/bin/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_3_0_0.xml +0 -11
- package/android/bin/.idea/libraries/Gradle__com_mixpanel_android_mixpanel_android_6_0_0_beta1_aar.xml +0 -16
- package/android/bin/.idea/libraries/Gradle__com_nineoldandroids_library_2_4_0.xml +0 -11
- package/android/bin/.idea/libraries/Gradle__com_parse_bolts_bolts_android_1_1_4.xml +0 -11
- package/android/bin/.idea/libraries/Gradle__com_squareup_okhttp_okhttp_2_5_0.xml +0 -11
- package/android/bin/.idea/libraries/Gradle__com_squareup_okhttp_okhttp_ws_2_5_0.xml +0 -11
- package/android/bin/.idea/libraries/Gradle__com_squareup_okio_okio_1_6_0.xml +0 -11
- package/android/bin/.idea/libraries/Gradle__commons_cli_commons_cli_1_2.xml +0 -11
- package/android/bin/.idea/libraries/Gradle__org_webkit_android_jsc_r174650_aar.xml +0 -11
- package/android/bin/.idea/misc.xml +0 -9
- package/android/bin/.idea/modules.xml +0 -8
- package/android/bin/.idea/vcs.xml +0 -6
- package/android/bin/.idea/workspace.xml +0 -57
- package/android/bin/.project +0 -34
- package/android/bin/.settings/org.eclipse.buildship.core.prefs +0 -13
- package/android/bin/build.gradle +0 -45
- package/android/bin/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/bin/gradle/wrapper/gradle-wrapper.properties +0 -6
- package/android/bin/gradlew +0 -172
- package/android/bin/gradlew.bat +0 -84
- package/android/bin/local.properties +0 -8
- package/android/bin/src/main/AndroidManifest.xml +0 -2
- package/logs/.b11bf985d66a037ca5688a574653f3bf76a28dfa-audit.json +0 -29
- package/logs/.c366df74eeb671df60a57a2075ae40a3dae2af25-audit.json +0 -29
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
#import <
|
|
1
|
+
#import <RCTAppDelegate.h>
|
|
2
2
|
#import <UIKit/UIKit.h>
|
|
3
3
|
|
|
4
|
-
@interface AppDelegate :
|
|
5
|
-
|
|
6
|
-
@property (nonatomic, strong) UIWindow *window;
|
|
4
|
+
@interface AppDelegate : RCTAppDelegate
|
|
7
5
|
|
|
8
6
|
@end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#import "AppDelegate.h"
|
|
2
|
+
|
|
3
|
+
#import <React/RCTBundleURLProvider.h>
|
|
4
|
+
|
|
5
|
+
@implementation AppDelegate
|
|
6
|
+
|
|
7
|
+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
8
|
+
{
|
|
9
|
+
self.moduleName = @"SimpleMixpanel";
|
|
10
|
+
// You can add your custom initial props in the dictionary below.
|
|
11
|
+
// They will be passed down to the ViewController used by React Native.
|
|
12
|
+
self.initialProps = @{};
|
|
13
|
+
|
|
14
|
+
return [super application:application didFinishLaunchingWithOptions:launchOptions];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
|
|
18
|
+
{
|
|
19
|
+
return [self bundleURL];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
- (NSURL *)bundleURL
|
|
23
|
+
{
|
|
24
|
+
#if DEBUG
|
|
25
|
+
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
|
|
26
|
+
#else
|
|
27
|
+
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
|
|
28
|
+
#endif
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@end
|
package/Samples/SimpleMixpanel/ios/SimpleMixpanel/Images.xcassets/AppIcon.appiconset/Contents.json
CHANGED
|
@@ -2,37 +2,52 @@
|
|
|
2
2
|
"images" : [
|
|
3
3
|
{
|
|
4
4
|
"idiom" : "iphone",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"scale" : "2x",
|
|
6
|
+
"size" : "20x20"
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
"idiom" : "iphone",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"scale" : "3x",
|
|
11
|
+
"size" : "20x20"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"idiom" : "iphone",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"scale" : "2x",
|
|
16
|
+
"size" : "29x29"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"idiom" : "iphone",
|
|
20
|
-
"
|
|
21
|
-
"
|
|
20
|
+
"scale" : "3x",
|
|
21
|
+
"size" : "29x29"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"idiom" : "iphone",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
25
|
+
"scale" : "2x",
|
|
26
|
+
"size" : "40x40"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"idiom" : "iphone",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
30
|
+
"scale" : "3x",
|
|
31
|
+
"size" : "40x40"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"idiom" : "iphone",
|
|
35
|
+
"scale" : "2x",
|
|
36
|
+
"size" : "60x60"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"idiom" : "iphone",
|
|
40
|
+
"scale" : "3x",
|
|
41
|
+
"size" : "60x60"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"idiom" : "ios-marketing",
|
|
45
|
+
"scale" : "1x",
|
|
46
|
+
"size" : "1024x1024"
|
|
32
47
|
}
|
|
33
48
|
],
|
|
34
49
|
"info" : {
|
|
35
|
-
"
|
|
36
|
-
"
|
|
50
|
+
"author" : "xcode",
|
|
51
|
+
"version" : 1
|
|
37
52
|
}
|
|
38
|
-
}
|
|
53
|
+
}
|
|
@@ -17,23 +17,20 @@
|
|
|
17
17
|
<key>CFBundlePackageType</key>
|
|
18
18
|
<string>APPL</string>
|
|
19
19
|
<key>CFBundleShortVersionString</key>
|
|
20
|
-
<string
|
|
20
|
+
<string>$(MARKETING_VERSION)</string>
|
|
21
21
|
<key>CFBundleSignature</key>
|
|
22
22
|
<string>????</string>
|
|
23
23
|
<key>CFBundleVersion</key>
|
|
24
|
-
<string
|
|
24
|
+
<string>$(CURRENT_PROJECT_VERSION)</string>
|
|
25
25
|
<key>LSRequiresIPhoneOS</key>
|
|
26
26
|
<true/>
|
|
27
27
|
<key>NSAppTransportSecurity</key>
|
|
28
28
|
<dict>
|
|
29
|
-
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<true/>
|
|
35
|
-
</dict>
|
|
36
|
-
</dict>
|
|
29
|
+
<!-- Do not change NSAllowsArbitraryLoads to true, or you will risk app rejection! -->
|
|
30
|
+
<key>NSAllowsArbitraryLoads</key>
|
|
31
|
+
<false/>
|
|
32
|
+
<key>NSAllowsLocalNetworking</key>
|
|
33
|
+
<true/>
|
|
37
34
|
</dict>
|
|
38
35
|
<key>NSLocationWhenInUseUsageDescription</key>
|
|
39
36
|
<string></string>
|
|
@@ -41,7 +38,7 @@
|
|
|
41
38
|
<string>LaunchScreen</string>
|
|
42
39
|
<key>UIRequiredDeviceCapabilities</key>
|
|
43
40
|
<array>
|
|
44
|
-
<string>
|
|
41
|
+
<string>arm64</string>
|
|
45
42
|
</array>
|
|
46
43
|
<key>UISupportedInterfaceOrientations</key>
|
|
47
44
|
<array>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>NSPrivacyAccessedAPITypes</key>
|
|
6
|
+
<array>
|
|
7
|
+
<dict>
|
|
8
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
9
|
+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
|
|
10
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
11
|
+
<array>
|
|
12
|
+
<string>1C8F.1</string>
|
|
13
|
+
<string>CA92.1</string>
|
|
14
|
+
</array>
|
|
15
|
+
</dict>
|
|
16
|
+
<dict>
|
|
17
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
18
|
+
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
|
|
19
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
20
|
+
<array>
|
|
21
|
+
<string>C617.1</string>
|
|
22
|
+
</array>
|
|
23
|
+
</dict>
|
|
24
|
+
<dict>
|
|
25
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
26
|
+
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
|
|
27
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
28
|
+
<array>
|
|
29
|
+
<string>35F9.1</string>
|
|
30
|
+
</array>
|
|
31
|
+
</dict>
|
|
32
|
+
</array>
|
|
33
|
+
<key>NSPrivacyCollectedDataTypes</key>
|
|
34
|
+
<array/>
|
|
35
|
+
<key>NSPrivacyTracking</key>
|
|
36
|
+
<false/>
|
|
37
|
+
</dict>
|
|
38
|
+
</plist>
|