mixpanel-react-native 1.3.3 → 1.3.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.
Files changed (204) hide show
  1. package/MixpanelReactNative.podspec +1 -1
  2. package/__tests__/index.test.js +1 -1
  3. package/android/build.gradle +1 -1
  4. package/docs/Mixpanel.html +1 -1
  5. package/docs/MixpanelGroup.html +1 -1
  6. package/docs/People.html +1 -1
  7. package/docs/index.html +1 -1
  8. package/docs/index.js.html +1 -1
  9. package/ios/Constants.swift +0 -1
  10. package/ios/MixpanelReactNative.swift +1 -1
  11. package/package.json +1 -1
  12. package/release.py +3 -3
  13. package/Samples/ContextAPIMixpanel/.buckconfig +0 -6
  14. package/Samples/ContextAPIMixpanel/.editorconfig +0 -3
  15. package/Samples/ContextAPIMixpanel/.eslintrc.js +0 -4
  16. package/Samples/ContextAPIMixpanel/.flowconfig +0 -66
  17. package/Samples/ContextAPIMixpanel/.gitattributes +0 -3
  18. package/Samples/ContextAPIMixpanel/.prettierrc.js +0 -7
  19. package/Samples/ContextAPIMixpanel/.watchmanconfig +0 -1
  20. package/Samples/ContextAPIMixpanel/Analytics.js +0 -18
  21. package/Samples/ContextAPIMixpanel/App.js +0 -17
  22. package/Samples/ContextAPIMixpanel/Screens/SampleScreen.js +0 -17
  23. package/Samples/ContextAPIMixpanel/__tests__/App-test.js +0 -14
  24. package/Samples/ContextAPIMixpanel/android/app/BUCK +0 -55
  25. package/Samples/ContextAPIMixpanel/android/app/build.gradle +0 -222
  26. package/Samples/ContextAPIMixpanel/android/app/build_defs.bzl +0 -19
  27. package/Samples/ContextAPIMixpanel/android/app/debug.keystore +0 -0
  28. package/Samples/ContextAPIMixpanel/android/app/proguard-rules.pro +0 -10
  29. package/Samples/ContextAPIMixpanel/android/app/src/debug/AndroidManifest.xml +0 -13
  30. package/Samples/ContextAPIMixpanel/android/app/src/debug/java/com/contextapimixpanel/ReactNativeFlipper.java +0 -72
  31. package/Samples/ContextAPIMixpanel/android/app/src/main/AndroidManifest.xml +0 -25
  32. package/Samples/ContextAPIMixpanel/android/app/src/main/java/com/contextapimixpanel/MainActivity.java +0 -15
  33. package/Samples/ContextAPIMixpanel/android/app/src/main/java/com/contextapimixpanel/MainApplication.java +0 -80
  34. package/Samples/ContextAPIMixpanel/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  35. package/Samples/ContextAPIMixpanel/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  36. package/Samples/ContextAPIMixpanel/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  37. package/Samples/ContextAPIMixpanel/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  38. package/Samples/ContextAPIMixpanel/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  39. package/Samples/ContextAPIMixpanel/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  40. package/Samples/ContextAPIMixpanel/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  41. package/Samples/ContextAPIMixpanel/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  42. package/Samples/ContextAPIMixpanel/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  43. package/Samples/ContextAPIMixpanel/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  44. package/Samples/ContextAPIMixpanel/android/app/src/main/res/values/strings.xml +0 -3
  45. package/Samples/ContextAPIMixpanel/android/app/src/main/res/values/styles.xml +0 -9
  46. package/Samples/ContextAPIMixpanel/android/build.gradle +0 -38
  47. package/Samples/ContextAPIMixpanel/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  48. package/Samples/ContextAPIMixpanel/android/gradle/wrapper/gradle-wrapper.properties +0 -5
  49. package/Samples/ContextAPIMixpanel/android/gradle.properties +0 -28
  50. package/Samples/ContextAPIMixpanel/android/gradlew +0 -185
  51. package/Samples/ContextAPIMixpanel/android/gradlew.bat +0 -89
  52. package/Samples/ContextAPIMixpanel/android/settings.gradle +0 -3
  53. package/Samples/ContextAPIMixpanel/app.json +0 -4
  54. package/Samples/ContextAPIMixpanel/babel.config.js +0 -3
  55. package/Samples/ContextAPIMixpanel/index.js +0 -9
  56. package/Samples/ContextAPIMixpanel/ios/ContextAPIMixpanel/AppDelegate.h +0 -8
  57. package/Samples/ContextAPIMixpanel/ios/ContextAPIMixpanel/AppDelegate.m +0 -62
  58. package/Samples/ContextAPIMixpanel/ios/ContextAPIMixpanel/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
  59. package/Samples/ContextAPIMixpanel/ios/ContextAPIMixpanel/Images.xcassets/Contents.json +0 -6
  60. package/Samples/ContextAPIMixpanel/ios/ContextAPIMixpanel/Info.plist +0 -55
  61. package/Samples/ContextAPIMixpanel/ios/ContextAPIMixpanel/LaunchScreen.storyboard +0 -47
  62. package/Samples/ContextAPIMixpanel/ios/ContextAPIMixpanel/main.m +0 -9
  63. package/Samples/ContextAPIMixpanel/ios/ContextAPIMixpanel-Bridging-Header.h +0 -4
  64. package/Samples/ContextAPIMixpanel/ios/ContextAPIMixpanel.xcodeproj/project.pbxproj +0 -694
  65. package/Samples/ContextAPIMixpanel/ios/ContextAPIMixpanel.xcodeproj/xcshareddata/xcschemes/ContextAPIMixpanel.xcscheme +0 -88
  66. package/Samples/ContextAPIMixpanel/ios/ContextAPIMixpanel.xcworkspace/contents.xcworkspacedata +0 -10
  67. package/Samples/ContextAPIMixpanel/ios/ContextAPIMixpanel.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  68. package/Samples/ContextAPIMixpanel/ios/ContextAPIMixpanelTests/ContextAPIMixpanelTests.m +0 -65
  69. package/Samples/ContextAPIMixpanel/ios/ContextAPIMixpanelTests/Info.plist +0 -24
  70. package/Samples/ContextAPIMixpanel/ios/File.swift +0 -8
  71. package/Samples/ContextAPIMixpanel/ios/Podfile +0 -29
  72. package/Samples/ContextAPIMixpanel/metro.config.js +0 -17
  73. package/Samples/ContextAPIMixpanel/package.json +0 -30
  74. package/Samples/ContextAPIMixpanel/yarn.lock +0 -6770
  75. package/Samples/MixpanelDemo/.buckconfig +0 -6
  76. package/Samples/MixpanelDemo/.eslintrc.js +0 -4
  77. package/Samples/MixpanelDemo/.flowconfig +0 -73
  78. package/Samples/MixpanelDemo/.gitattributes +0 -1
  79. package/Samples/MixpanelDemo/.prettierrc.js +0 -6
  80. package/Samples/MixpanelDemo/.watchmanconfig +0 -1
  81. package/Samples/MixpanelDemo/Analytics.js +0 -15
  82. package/Samples/MixpanelDemo/App.js +0 -11
  83. package/Samples/MixpanelDemo/Router.js +0 -35
  84. package/Samples/MixpanelDemo/__tests__/App-test.js +0 -3
  85. package/Samples/MixpanelDemo/android/app/BUCK +0 -55
  86. package/Samples/MixpanelDemo/android/app/build.gradle +0 -219
  87. package/Samples/MixpanelDemo/android/app/build_defs.bzl +0 -19
  88. package/Samples/MixpanelDemo/android/app/debug.keystore +0 -0
  89. package/Samples/MixpanelDemo/android/app/proguard-rules.pro +0 -10
  90. package/Samples/MixpanelDemo/android/app/src/debug/AndroidManifest.xml +0 -8
  91. package/Samples/MixpanelDemo/android/app/src/debug/java/com/mixpaneldemo/ReactNativeFlipper.java +0 -72
  92. package/Samples/MixpanelDemo/android/app/src/main/AndroidManifest.xml +0 -27
  93. package/Samples/MixpanelDemo/android/app/src/main/java/com/MixpanelDemo/MainActivity.java +0 -15
  94. package/Samples/MixpanelDemo/android/app/src/main/java/com/MixpanelDemo/MainApplication.java +0 -81
  95. package/Samples/MixpanelDemo/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  96. package/Samples/MixpanelDemo/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  97. package/Samples/MixpanelDemo/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  98. package/Samples/MixpanelDemo/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  99. package/Samples/MixpanelDemo/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  100. package/Samples/MixpanelDemo/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  101. package/Samples/MixpanelDemo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  102. package/Samples/MixpanelDemo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  103. package/Samples/MixpanelDemo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  104. package/Samples/MixpanelDemo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  105. package/Samples/MixpanelDemo/android/app/src/main/res/values/strings.xml +0 -3
  106. package/Samples/MixpanelDemo/android/app/src/main/res/values/styles.xml +0 -9
  107. package/Samples/MixpanelDemo/android/build.gradle +0 -37
  108. package/Samples/MixpanelDemo/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  109. package/Samples/MixpanelDemo/android/gradle/wrapper/gradle-wrapper.properties +0 -5
  110. package/Samples/MixpanelDemo/android/gradle.properties +0 -28
  111. package/Samples/MixpanelDemo/android/gradlew +0 -183
  112. package/Samples/MixpanelDemo/android/gradlew.bat +0 -103
  113. package/Samples/MixpanelDemo/android/settings.gradle +0 -5
  114. package/Samples/MixpanelDemo/app.json +0 -5
  115. package/Samples/MixpanelDemo/babel.config.js +0 -3
  116. package/Samples/MixpanelDemo/index.js +0 -9
  117. package/Samples/MixpanelDemo/ios/Empty.swift +0 -8
  118. package/Samples/MixpanelDemo/ios/MixpanelDemo/AppDelegate.h +0 -8
  119. package/Samples/MixpanelDemo/ios/MixpanelDemo/AppDelegate.m +0 -58
  120. package/Samples/MixpanelDemo/ios/MixpanelDemo/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
  121. package/Samples/MixpanelDemo/ios/MixpanelDemo/Images.xcassets/Contents.json +0 -6
  122. package/Samples/MixpanelDemo/ios/MixpanelDemo/Info.plist +0 -57
  123. package/Samples/MixpanelDemo/ios/MixpanelDemo/LaunchScreen.storyboard +0 -58
  124. package/Samples/MixpanelDemo/ios/MixpanelDemo/main.m +0 -9
  125. package/Samples/MixpanelDemo/ios/MixpanelDemo-Bridging-Header.h +0 -4
  126. package/Samples/MixpanelDemo/ios/MixpanelDemo-tvOS/Info.plist +0 -53
  127. package/Samples/MixpanelDemo/ios/MixpanelDemo-tvOSTests/Info.plist +0 -24
  128. package/Samples/MixpanelDemo/ios/MixpanelDemo.xcodeproj/project.pbxproj +0 -997
  129. package/Samples/MixpanelDemo/ios/MixpanelDemo.xcodeproj/xcshareddata/xcschemes/MixpanelDemo-tvOS.xcscheme +0 -88
  130. package/Samples/MixpanelDemo/ios/MixpanelDemo.xcodeproj/xcshareddata/xcschemes/MixpanelDemo.xcscheme +0 -88
  131. package/Samples/MixpanelDemo/ios/MixpanelDemo.xcworkspace/contents.xcworkspacedata +0 -10
  132. package/Samples/MixpanelDemo/ios/MixpanelDemo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  133. package/Samples/MixpanelDemo/ios/MixpanelDemoTests/Info.plist +0 -24
  134. package/Samples/MixpanelDemo/ios/MixpanelDemoTests/MixpanelDemoTests.m +0 -65
  135. package/Samples/MixpanelDemo/ios/Podfile +0 -24
  136. package/Samples/MixpanelDemo/metro.config.js +0 -17
  137. package/Samples/MixpanelDemo/package.json +0 -40
  138. package/Samples/MixpanelDemo/screens/EventScreen.js +0 -156
  139. package/Samples/MixpanelDemo/screens/GDPRScreen.js +0 -63
  140. package/Samples/MixpanelDemo/screens/GroupScreen.js +0 -142
  141. package/Samples/MixpanelDemo/screens/Home.js +0 -54
  142. package/Samples/MixpanelDemo/screens/ProfileScreen.js +0 -184
  143. package/Samples/MixpanelDemo/yarn.lock +0 -6945
  144. package/Samples/README.md +0 -39
  145. package/Samples/SimpleMixpanel/.buckconfig +0 -6
  146. package/Samples/SimpleMixpanel/.editorconfig +0 -3
  147. package/Samples/SimpleMixpanel/.eslintrc.js +0 -4
  148. package/Samples/SimpleMixpanel/.flowconfig +0 -66
  149. package/Samples/SimpleMixpanel/.gitattributes +0 -3
  150. package/Samples/SimpleMixpanel/.prettierrc.js +0 -7
  151. package/Samples/SimpleMixpanel/.watchmanconfig +0 -1
  152. package/Samples/SimpleMixpanel/App.js +0 -42
  153. package/Samples/SimpleMixpanel/__tests__/App-test.js +0 -14
  154. package/Samples/SimpleMixpanel/android/app/BUCK +0 -55
  155. package/Samples/SimpleMixpanel/android/app/build.gradle +0 -222
  156. package/Samples/SimpleMixpanel/android/app/build_defs.bzl +0 -19
  157. package/Samples/SimpleMixpanel/android/app/debug.keystore +0 -0
  158. package/Samples/SimpleMixpanel/android/app/proguard-rules.pro +0 -10
  159. package/Samples/SimpleMixpanel/android/app/src/debug/AndroidManifest.xml +0 -13
  160. package/Samples/SimpleMixpanel/android/app/src/debug/java/com/simplemixpanel/ReactNativeFlipper.java +0 -72
  161. package/Samples/SimpleMixpanel/android/app/src/main/AndroidManifest.xml +0 -25
  162. package/Samples/SimpleMixpanel/android/app/src/main/java/com/simplemixpanel/MainActivity.java +0 -15
  163. package/Samples/SimpleMixpanel/android/app/src/main/java/com/simplemixpanel/MainApplication.java +0 -80
  164. package/Samples/SimpleMixpanel/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  165. package/Samples/SimpleMixpanel/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  166. package/Samples/SimpleMixpanel/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  167. package/Samples/SimpleMixpanel/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  168. package/Samples/SimpleMixpanel/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  169. package/Samples/SimpleMixpanel/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  170. package/Samples/SimpleMixpanel/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  171. package/Samples/SimpleMixpanel/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  172. package/Samples/SimpleMixpanel/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  173. package/Samples/SimpleMixpanel/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  174. package/Samples/SimpleMixpanel/android/app/src/main/res/values/strings.xml +0 -3
  175. package/Samples/SimpleMixpanel/android/app/src/main/res/values/styles.xml +0 -9
  176. package/Samples/SimpleMixpanel/android/build.gradle +0 -38
  177. package/Samples/SimpleMixpanel/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  178. package/Samples/SimpleMixpanel/android/gradle/wrapper/gradle-wrapper.properties +0 -5
  179. package/Samples/SimpleMixpanel/android/gradle.properties +0 -28
  180. package/Samples/SimpleMixpanel/android/gradlew +0 -185
  181. package/Samples/SimpleMixpanel/android/gradlew.bat +0 -89
  182. package/Samples/SimpleMixpanel/android/settings.gradle +0 -3
  183. package/Samples/SimpleMixpanel/app.json +0 -4
  184. package/Samples/SimpleMixpanel/babel.config.js +0 -3
  185. package/Samples/SimpleMixpanel/index.js +0 -9
  186. package/Samples/SimpleMixpanel/ios/File.swift +0 -8
  187. package/Samples/SimpleMixpanel/ios/Podfile +0 -29
  188. package/Samples/SimpleMixpanel/ios/SimpleMixpanel/AppDelegate.h +0 -8
  189. package/Samples/SimpleMixpanel/ios/SimpleMixpanel/AppDelegate.m +0 -62
  190. package/Samples/SimpleMixpanel/ios/SimpleMixpanel/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
  191. package/Samples/SimpleMixpanel/ios/SimpleMixpanel/Images.xcassets/Contents.json +0 -6
  192. package/Samples/SimpleMixpanel/ios/SimpleMixpanel/Info.plist +0 -55
  193. package/Samples/SimpleMixpanel/ios/SimpleMixpanel/LaunchScreen.storyboard +0 -47
  194. package/Samples/SimpleMixpanel/ios/SimpleMixpanel/main.m +0 -9
  195. package/Samples/SimpleMixpanel/ios/SimpleMixpanel-Bridging-Header.h +0 -4
  196. package/Samples/SimpleMixpanel/ios/SimpleMixpanel.xcodeproj/project.pbxproj +0 -694
  197. package/Samples/SimpleMixpanel/ios/SimpleMixpanel.xcodeproj/xcshareddata/xcschemes/SimpleMixpanel.xcscheme +0 -88
  198. package/Samples/SimpleMixpanel/ios/SimpleMixpanel.xcworkspace/contents.xcworkspacedata +0 -10
  199. package/Samples/SimpleMixpanel/ios/SimpleMixpanel.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  200. package/Samples/SimpleMixpanel/ios/SimpleMixpanelTests/Info.plist +0 -24
  201. package/Samples/SimpleMixpanel/ios/SimpleMixpanelTests/SimpleMixpanelTests.m +0 -65
  202. package/Samples/SimpleMixpanel/metro.config.js +0 -17
  203. package/Samples/SimpleMixpanel/package.json +0 -30
  204. package/Samples/SimpleMixpanel/yarn.lock +0 -6770
@@ -1,88 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Scheme
3
- LastUpgradeVersion = "1130"
4
- version = "1.3">
5
- <BuildAction
6
- parallelizeBuildables = "YES"
7
- buildImplicitDependencies = "YES">
8
- <BuildActionEntries>
9
- <BuildActionEntry
10
- buildForTesting = "YES"
11
- buildForRunning = "YES"
12
- buildForProfiling = "YES"
13
- buildForArchiving = "YES"
14
- buildForAnalyzing = "YES">
15
- <BuildableReference
16
- BuildableIdentifier = "primary"
17
- BlueprintIdentifier = "2D02E47A1E0B4A5D006451C7"
18
- BuildableName = "MixpanelDemo-tvOS.app"
19
- BlueprintName = "MixpanelDemo-tvOS"
20
- ReferencedContainer = "container:MixpanelDemo.xcodeproj">
21
- </BuildableReference>
22
- </BuildActionEntry>
23
- </BuildActionEntries>
24
- </BuildAction>
25
- <TestAction
26
- buildConfiguration = "Debug"
27
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
- shouldUseLaunchSchemeArgsEnv = "YES">
30
- <Testables>
31
- <TestableReference
32
- skipped = "NO">
33
- <BuildableReference
34
- BuildableIdentifier = "primary"
35
- BlueprintIdentifier = "2D02E48F1E0B4A5D006451C7"
36
- BuildableName = "MixpanelDemo-tvOSTests.xctest"
37
- BlueprintName = "MixpanelDemo-tvOSTests"
38
- ReferencedContainer = "container:MixpanelDemo.xcodeproj">
39
- </BuildableReference>
40
- </TestableReference>
41
- </Testables>
42
- </TestAction>
43
- <LaunchAction
44
- buildConfiguration = "Debug"
45
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
46
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
47
- launchStyle = "0"
48
- useCustomWorkingDirectory = "NO"
49
- ignoresPersistentStateOnLaunch = "NO"
50
- debugDocumentVersioning = "YES"
51
- debugServiceExtension = "internal"
52
- allowLocationSimulation = "YES">
53
- <BuildableProductRunnable
54
- runnableDebuggingMode = "0">
55
- <BuildableReference
56
- BuildableIdentifier = "primary"
57
- BlueprintIdentifier = "2D02E47A1E0B4A5D006451C7"
58
- BuildableName = "MixpanelDemo-tvOS.app"
59
- BlueprintName = "MixpanelDemo-tvOS"
60
- ReferencedContainer = "container:MixpanelDemo.xcodeproj">
61
- </BuildableReference>
62
- </BuildableProductRunnable>
63
- </LaunchAction>
64
- <ProfileAction
65
- buildConfiguration = "Release"
66
- shouldUseLaunchSchemeArgsEnv = "YES"
67
- savedToolIdentifier = ""
68
- useCustomWorkingDirectory = "NO"
69
- debugDocumentVersioning = "YES">
70
- <BuildableProductRunnable
71
- runnableDebuggingMode = "0">
72
- <BuildableReference
73
- BuildableIdentifier = "primary"
74
- BlueprintIdentifier = "2D02E47A1E0B4A5D006451C7"
75
- BuildableName = "MixpanelDemo-tvOS.app"
76
- BlueprintName = "MixpanelDemo-tvOS"
77
- ReferencedContainer = "container:MixpanelDemo.xcodeproj">
78
- </BuildableReference>
79
- </BuildableProductRunnable>
80
- </ProfileAction>
81
- <AnalyzeAction
82
- buildConfiguration = "Debug">
83
- </AnalyzeAction>
84
- <ArchiveAction
85
- buildConfiguration = "Release"
86
- revealArchiveInOrganizer = "YES">
87
- </ArchiveAction>
88
- </Scheme>
@@ -1,88 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Scheme
3
- LastUpgradeVersion = "1130"
4
- version = "1.3">
5
- <BuildAction
6
- parallelizeBuildables = "YES"
7
- buildImplicitDependencies = "YES">
8
- <BuildActionEntries>
9
- <BuildActionEntry
10
- buildForTesting = "YES"
11
- buildForRunning = "YES"
12
- buildForProfiling = "YES"
13
- buildForArchiving = "YES"
14
- buildForAnalyzing = "YES">
15
- <BuildableReference
16
- BuildableIdentifier = "primary"
17
- BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
18
- BuildableName = "MixpanelDemo.app"
19
- BlueprintName = "MixpanelDemo"
20
- ReferencedContainer = "container:MixpanelDemo.xcodeproj">
21
- </BuildableReference>
22
- </BuildActionEntry>
23
- </BuildActionEntries>
24
- </BuildAction>
25
- <TestAction
26
- buildConfiguration = "Debug"
27
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
- shouldUseLaunchSchemeArgsEnv = "YES">
30
- <Testables>
31
- <TestableReference
32
- skipped = "NO">
33
- <BuildableReference
34
- BuildableIdentifier = "primary"
35
- BlueprintIdentifier = "00E356ED1AD99517003FC87E"
36
- BuildableName = "MixpanelDemoTests.xctest"
37
- BlueprintName = "MixpanelDemoTests"
38
- ReferencedContainer = "container:MixpanelDemo.xcodeproj">
39
- </BuildableReference>
40
- </TestableReference>
41
- </Testables>
42
- </TestAction>
43
- <LaunchAction
44
- buildConfiguration = "Debug"
45
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
46
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
47
- launchStyle = "0"
48
- useCustomWorkingDirectory = "NO"
49
- ignoresPersistentStateOnLaunch = "NO"
50
- debugDocumentVersioning = "YES"
51
- debugServiceExtension = "internal"
52
- allowLocationSimulation = "YES">
53
- <BuildableProductRunnable
54
- runnableDebuggingMode = "0">
55
- <BuildableReference
56
- BuildableIdentifier = "primary"
57
- BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
58
- BuildableName = "MixpanelDemo.app"
59
- BlueprintName = "MixpanelDemo"
60
- ReferencedContainer = "container:MixpanelDemo.xcodeproj">
61
- </BuildableReference>
62
- </BuildableProductRunnable>
63
- </LaunchAction>
64
- <ProfileAction
65
- buildConfiguration = "Release"
66
- shouldUseLaunchSchemeArgsEnv = "YES"
67
- savedToolIdentifier = ""
68
- useCustomWorkingDirectory = "NO"
69
- debugDocumentVersioning = "YES">
70
- <BuildableProductRunnable
71
- runnableDebuggingMode = "0">
72
- <BuildableReference
73
- BuildableIdentifier = "primary"
74
- BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
75
- BuildableName = "MixpanelDemo.app"
76
- BlueprintName = "MixpanelDemo"
77
- ReferencedContainer = "container:MixpanelDemo.xcodeproj">
78
- </BuildableReference>
79
- </BuildableProductRunnable>
80
- </ProfileAction>
81
- <AnalyzeAction
82
- buildConfiguration = "Debug">
83
- </AnalyzeAction>
84
- <ArchiveAction
85
- buildConfiguration = "Release"
86
- revealArchiveInOrganizer = "YES">
87
- </ArchiveAction>
88
- </Scheme>
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Workspace
3
- version = "1.0">
4
- <FileRef
5
- location = "group:MixpanelDemo.xcodeproj">
6
- </FileRef>
7
- <FileRef
8
- location = "group:Pods/Pods.xcodeproj">
9
- </FileRef>
10
- </Workspace>
@@ -1,8 +0,0 @@
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>IDEDidComputeMac32BitWarning</key>
6
- <true/>
7
- </dict>
8
- </plist>
@@ -1,24 +0,0 @@
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>CFBundleDevelopmentRegion</key>
6
- <string>en</string>
7
- <key>CFBundleExecutable</key>
8
- <string>$(EXECUTABLE_NAME)</string>
9
- <key>CFBundleIdentifier</key>
10
- <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11
- <key>CFBundleInfoDictionaryVersion</key>
12
- <string>6.0</string>
13
- <key>CFBundleName</key>
14
- <string>$(PRODUCT_NAME)</string>
15
- <key>CFBundlePackageType</key>
16
- <string>BNDL</string>
17
- <key>CFBundleShortVersionString</key>
18
- <string>1.0</string>
19
- <key>CFBundleSignature</key>
20
- <string>????</string>
21
- <key>CFBundleVersion</key>
22
- <string>1</string>
23
- </dict>
24
- </plist>
@@ -1,65 +0,0 @@
1
- #import <UIKit/UIKit.h>
2
- #import <XCTest/XCTest.h>
3
-
4
- #import <React/RCTLog.h>
5
- #import <React/RCTRootView.h>
6
-
7
- #define TIMEOUT_SECONDS 600
8
- #define TEXT_TO_LOOK_FOR @"Welcome to React"
9
-
10
- @interface MixpanelDemoTests : XCTestCase
11
-
12
- @end
13
-
14
- @implementation MixpanelDemoTests
15
-
16
- - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
17
- {
18
- if (test(view)) {
19
- return YES;
20
- }
21
- for (UIView *subview in [view subviews]) {
22
- if ([self findSubviewInView:subview matching:test]) {
23
- return YES;
24
- }
25
- }
26
- return NO;
27
- }
28
-
29
- - (void)testRendersWelcomeScreen
30
- {
31
- UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
32
- NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
33
- BOOL foundElement = NO;
34
-
35
- __block NSString *redboxError = nil;
36
- #ifdef DEBUG
37
- RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
38
- if (level >= RCTLogLevelError) {
39
- redboxError = message;
40
- }
41
- });
42
- #endif
43
-
44
- while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
45
- [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
46
- [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
47
-
48
- foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
49
- if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
50
- return YES;
51
- }
52
- return NO;
53
- }];
54
- }
55
-
56
- #ifdef DEBUG
57
- RCTSetLogFunction(RCTDefaultLogFunction);
58
- #endif
59
-
60
- XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
61
- XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
62
- }
63
-
64
-
65
- @end
@@ -1,24 +0,0 @@
1
- require_relative '../node_modules/react-native/scripts/react_native_pods'
2
- require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
3
-
4
- platform :ios, '10.0'
5
-
6
- target 'MixpanelDemo' do
7
- config = use_native_modules!
8
-
9
- use_react_native!(:path => config["reactNativePath"])
10
-
11
- target 'MixpanelDemoTests' do
12
- inherit! :complete
13
- # Pods for testing
14
- end
15
- end
16
-
17
- target 'MixpanelDemo-tvOS' do
18
- # Pods for MixpanelDemo-tvOS
19
-
20
- target 'MixpanelDemo-tvOSTests' do
21
- inherit! :search_paths
22
- # Pods for testing
23
- end
24
- end
@@ -1,17 +0,0 @@
1
- /**
2
- * Metro configuration for React Native
3
- * https://github.com/facebook/react-native
4
- *
5
- * @format
6
- */
7
-
8
- module.exports = {
9
- transformer: {
10
- getTransformOptions: async () => ({
11
- transform: {
12
- experimentalImportSupport: false,
13
- inlineRequires: false,
14
- },
15
- }),
16
- },
17
- };
@@ -1,40 +0,0 @@
1
- {
2
- "name": "MixpanelDemo",
3
- "version": "0.0.1",
4
- "private": true,
5
- "scripts": {
6
- "android": "react-native run-android",
7
- "ios": "react-native run-ios",
8
- "start": "react-native start",
9
- "test": "jest",
10
- "lint": "eslint ."
11
- },
12
- "dependencies": {
13
- "mixpanel-react-native": "file:../..",
14
- "react": "17.0.1",
15
- "react-native": "0.64.1",
16
- "react-native-gesture-handler": "^1.8.0",
17
- "react-native-interactable": "^2.0.1",
18
- "react-native-ionicons": "^4.6.5",
19
- "react-native-reanimated": "^1.13.1",
20
- "react-native-safe-area-context": "^3.1.8",
21
- "react-native-safe-area-view": "react-native-community/react-native-safe-area-view",
22
- "react-native-screens": "^2.13.0",
23
- "react-navigation": "^4.4.4",
24
- "react-navigation-stack": "^2.10.1"
25
- },
26
- "devDependencies": {
27
- "@babel/core": "^7.12.9",
28
- "@babel/runtime": "^7.12.5",
29
- "@react-native-community/eslint-config": "^2.0.0",
30
- "babel-jest": "^26.6.3",
31
- "eslint": "7.14.0",
32
- "jest": "^26.6.3",
33
- "metro-react-native-babel-preset": "^0.64.0",
34
- "react-native-clean-project": "^3.6.4",
35
- "react-test-renderer": "17.0.1"
36
- },
37
- "jest": {
38
- "preset": "react-native"
39
- }
40
- }
@@ -1,156 +0,0 @@
1
- import React from 'react';
2
- import {View, Text, StyleSheet, TouchableOpacity, ScrollView} from 'react-native';
3
-
4
- import {MixpanelInstance} from '../Analytics';
5
-
6
-
7
- class EventScreen extends React.Component {
8
-
9
- constructor(props) {
10
- super(props);
11
- this.mixpanel = MixpanelInstance;
12
- }
13
-
14
- /**
15
- Use for Track an event.
16
- */
17
- track = () => {
18
- this.mixpanel.track("Track Event!");
19
- }
20
-
21
- identify = () => {
22
- this.mixpanel.identify("testDistinctId");
23
- }
24
-
25
- timeEvent = () => {
26
- const eventName = "Timed Event";
27
- this.mixpanel.timeEvent(eventName);
28
- setTimeout(() => {
29
- this.mixpanel.track(eventName);
30
- }, 2000);
31
- }
32
-
33
- trackWProperties = () => {
34
- const properties = {"Cool Property": "Property Value"};
35
- this.mixpanel.track("Track event with property", properties);
36
- }
37
-
38
- /**
39
- registerSuperProperties will store a new superProperty and possibly overwriting any existing superProperty with the same name.
40
- */
41
- registerSuperProperties = () => {
42
- this.mixpanel.registerSuperProperties({
43
- "super property": "super property value",
44
- "super property1": "super property value1",
45
- });
46
- }
47
- /**
48
- Erase all currently registered superProperties.
49
- */
50
- clearSuperProperties = () => {
51
- this.mixpanel.clearSuperProperties();
52
- }
53
-
54
- unregisterSuperProperty = () => {
55
- this.mixpanel.unregisterSuperProperty("super property");
56
- }
57
- /**
58
- Returns a json object of the user's current super properties.
59
- */
60
- getSuperProperties = () => {
61
- this.mixpanel.getSuperProperties().then(t => {
62
- alert(JSON.stringify(t));
63
- });
64
- }
65
-
66
- registerSuperPropertiesOnce = () => {
67
- this.mixpanel.registerSuperPropertiesOnce({"super property": "super property value1"}, );
68
- }
69
-
70
- flush = () => {
71
- this.mixpanel.flush();
72
- }
73
-
74
- render() {
75
- return (
76
- <ScrollView>
77
- <View style={{ flexDirection: 'row', justifyContent: 'space-between' }}>
78
- <TouchableOpacity style={styles.button} onPress={this.track}>
79
- <Text style={styles.buttonText}>Track w/o Properties</Text>
80
- </TouchableOpacity>
81
- </View>
82
- <View style={{ flexDirection: 'row', justifyContent: 'space-between' }}>
83
- <TouchableOpacity style={styles.button} onPress={this.trackWProperties}>
84
- <Text style={styles.buttonText}>Track w Properties</Text>
85
- </TouchableOpacity>
86
- </View>
87
- <View style={{ flexDirection: 'row', justifyContent: 'space-between' }}>
88
- <TouchableOpacity style={styles.button} onPress={this.identify}>
89
- <Text style={styles.buttonText}>Identify</Text>
90
- </TouchableOpacity>
91
- </View>
92
- <View style={{ flexDirection: 'row', justifyContent: 'space-between' }}>
93
- <TouchableOpacity style={styles.button} onPress={this.timeEvent}>
94
- <Text style={styles.buttonText}>Time Event 2 secs</Text>
95
- </TouchableOpacity>
96
- </View>
97
- <View style={{ flexDirection: 'row', justifyContent: 'space-between' }}>
98
- <TouchableOpacity style={styles.button} onPress={this.getSuperProperties}>
99
- <Text style={styles.buttonText}>Get Current SuperProperties</Text>
100
- </TouchableOpacity>
101
- </View>
102
- <View style={{ flexDirection: 'row', justifyContent: 'space-between' }}>
103
- <TouchableOpacity style={styles.button} onPress={this.clearSuperProperties}>
104
- <Text style={styles.buttonText}>Clear SuperProperties</Text>
105
- </TouchableOpacity>
106
- </View>
107
- <View style={{ flexDirection: 'row', justifyContent: 'space-between' }}>
108
- <TouchableOpacity style={styles.button} onPress={this.registerSuperProperties}>
109
- <Text style={styles.buttonText}>Register SuperProperties</Text>
110
- </TouchableOpacity>
111
- </View>
112
- <View style={{ flexDirection: 'row', justifyContent: 'space-between' }}>
113
- <TouchableOpacity style={styles.button} onPress={this.registerSuperPropertiesOnce}>
114
- <Text style={styles.buttonText}>Register SuperProperties Once</Text>
115
- </TouchableOpacity>
116
- </View>
117
- <View style={{ flexDirection: 'row', justifyContent: 'space-between' }}>
118
- <TouchableOpacity style={styles.button} onPress={this.unregisterSuperProperty}>
119
- <Text style={styles.buttonText}>Unregister SuperProperty</Text>
120
- </TouchableOpacity>
121
- </View>
122
- <View style={{ flexDirection: 'row', justifyContent: 'space-between' }}>
123
- <TouchableOpacity style={styles.button} onPress={this.flush}>
124
- <Text style={styles.buttonText}>Flush</Text>
125
- </TouchableOpacity>
126
- </View>
127
- </ScrollView>
128
- );
129
- }
130
- }
131
-
132
- const styles = StyleSheet.create({
133
- button: {
134
- backgroundColor: '#1E90FF',
135
- width: '100%',
136
- alignItems: 'center',
137
- marginVertical: 10,
138
- paddingVertical: 12,
139
- },
140
- buttonText: {
141
- fontSize: 16,
142
- fontWeight: '500',
143
- color: '#ffffff',
144
- textAlign: "center"
145
- },
146
- touchableOpacity: {
147
- backgroundColor: '#1E90FF',
148
- borderRadius: 25,
149
- width: '100%',
150
- alignItems: 'center',
151
- marginVertical: 10,
152
- paddingVertical: 10,
153
- }
154
- })
155
-
156
- export default EventScreen;
@@ -1,63 +0,0 @@
1
- import React from 'react';
2
- import {Text, TouchableOpacity, StyleSheet, View, ScrollView} from 'react-native';
3
- import {MixpanelInstance} from '../Analytics';
4
-
5
- export default class GDPRScreen extends React.Component {
6
-
7
- constructor(props) {
8
- super(props);
9
- this.mixpanel = MixpanelInstance;
10
- }
11
-
12
- /**
13
- Identify the user uniquely by providing the user distinctId.
14
- */
15
- optIn = () => {
16
- this.mixpanel.optInTracking(this.mixpanel.getDistinctId());
17
- }
18
-
19
- optOut = () => {
20
- this.mixpanel.optOutTracking();
21
- }
22
-
23
- render() {
24
- return (
25
- <ScrollView>
26
- <View style={{ flexDirection: 'row', justifyContent: 'space-between' }}>
27
- <TouchableOpacity style={styles.button} onPress={this.optIn}>
28
- <Text style={styles.buttonText}>Opt In</Text>
29
- </TouchableOpacity>
30
- </View>
31
- <View style={{ flexDirection: 'row', justifyContent: 'space-between' }}>
32
- <TouchableOpacity style={styles.button} onPress={this.optOut}>
33
- <Text style={styles.buttonText}>Opt Out</Text>
34
- </TouchableOpacity>
35
- </View>
36
- </ScrollView>
37
- );
38
- }
39
- }
40
-
41
- const styles = StyleSheet.create({
42
- button: {
43
- backgroundColor: '#1E90FF',
44
- width: '100%',
45
- alignItems: 'center',
46
- marginVertical: 10,
47
- paddingVertical: 10,
48
- },
49
- buttonText: {
50
- fontSize: 16,
51
- fontWeight: '500',
52
- color: '#ffffff',
53
- textAlign: "center"
54
- },
55
- touchableOpacity: {
56
- backgroundColor: '#1E90FF',
57
- borderRadius: 25,
58
- width: '100%',
59
- alignItems: 'center',
60
- marginVertical: 10,
61
- paddingVertical: 10,
62
- }
63
- })