mixpanel-react-native 3.1.0 → 3.1.2
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/.claude/settings.local.json +6 -0
- package/.vscode/settings.json +2 -4
- package/CHANGELOG.md +26 -0
- package/CLAUDE.md +26 -2
- package/Samples/MixpanelExample/.bundle/config +2 -0
- package/Samples/MixpanelExample/.eslintrc.js +4 -0
- package/Samples/MixpanelExample/.prettierrc.js +7 -0
- package/Samples/MixpanelExample/.watchmanconfig +1 -0
- package/Samples/MixpanelExample/App.tsx +143 -0
- package/Samples/MixpanelExample/Gemfile +16 -0
- package/Samples/MixpanelExample/README.md +97 -0
- package/Samples/MixpanelExample/__tests__/App.test.tsx +13 -0
- package/Samples/MixpanelExample/android/app/build.gradle +119 -0
- package/Samples/MixpanelExample/android/app/debug.keystore +0 -0
- package/Samples/MixpanelExample/android/app/proguard-rules.pro +10 -0
- package/Samples/MixpanelExample/android/app/src/debug/AndroidManifest.xml +9 -0
- package/Samples/MixpanelExample/android/app/src/main/AndroidManifest.xml +26 -0
- package/Samples/MixpanelExample/android/app/src/main/java/com/mixpanelexample/MainActivity.kt +22 -0
- package/Samples/MixpanelExample/android/app/src/main/java/com/mixpanelexample/MainApplication.kt +44 -0
- package/Samples/MixpanelExample/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
- package/Samples/MixpanelExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/Samples/MixpanelExample/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/Samples/MixpanelExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/Samples/MixpanelExample/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/Samples/MixpanelExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/Samples/MixpanelExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/Samples/MixpanelExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/Samples/MixpanelExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/Samples/MixpanelExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/Samples/MixpanelExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/Samples/MixpanelExample/android/app/src/main/res/values/strings.xml +3 -0
- package/Samples/MixpanelExample/android/app/src/main/res/values/styles.xml +9 -0
- package/Samples/MixpanelExample/android/build.gradle +21 -0
- package/Samples/MixpanelExample/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/Samples/MixpanelExample/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/Samples/MixpanelExample/android/gradle.properties +39 -0
- package/Samples/MixpanelExample/android/gradlew +251 -0
- package/Samples/MixpanelExample/android/gradlew.bat +94 -0
- package/Samples/MixpanelExample/android/settings.gradle +6 -0
- package/Samples/MixpanelExample/app.json +4 -0
- package/Samples/MixpanelExample/babel.config.js +3 -0
- package/Samples/MixpanelExample/index.js +9 -0
- package/Samples/MixpanelExample/ios/.xcode.env +11 -0
- package/Samples/MixpanelExample/ios/MixpanelExample/AppDelegate.swift +48 -0
- package/Samples/MixpanelExample/ios/MixpanelExample/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- package/Samples/MixpanelExample/ios/MixpanelExample/Images.xcassets/Contents.json +6 -0
- package/Samples/MixpanelExample/ios/MixpanelExample/Info.plist +52 -0
- package/Samples/MixpanelExample/ios/MixpanelExample/LaunchScreen.storyboard +47 -0
- package/Samples/MixpanelExample/ios/MixpanelExample/PrivacyInfo.xcprivacy +37 -0
- package/Samples/MixpanelExample/ios/MixpanelExample.xcodeproj/project.pbxproj +505 -0
- package/Samples/MixpanelExample/ios/MixpanelExample.xcodeproj/xcshareddata/xcschemes/MixpanelExample.xcscheme +88 -0
- package/Samples/MixpanelExample/ios/Podfile +35 -0
- package/Samples/MixpanelExample/jest.config.js +3 -0
- package/Samples/MixpanelExample/metro.config.js +22 -0
- package/Samples/MixpanelExample/package-lock.json +12456 -0
- package/Samples/MixpanelExample/package.json +42 -0
- package/Samples/MixpanelExample/tsconfig.json +3 -0
- package/__tests__/jest_setup.js +5 -5
- package/__tests__/persistent.test.js +6 -55
- package/index.d.ts +2 -1
- package/ios/MixpanelReactNative.m +1 -1
- package/javascript/mixpanel-persistent.js +3 -6
- package/package.json +3 -3
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<Scheme
|
|
3
|
+
LastUpgradeVersion = "1210"
|
|
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 = "MixpanelExample.app"
|
|
19
|
+
BlueprintName = "MixpanelExample"
|
|
20
|
+
ReferencedContainer = "container:MixpanelExample.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 = "MixpanelExampleTests.xctest"
|
|
37
|
+
BlueprintName = "MixpanelExampleTests"
|
|
38
|
+
ReferencedContainer = "container:MixpanelExample.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 = "MixpanelExample.app"
|
|
59
|
+
BlueprintName = "MixpanelExample"
|
|
60
|
+
ReferencedContainer = "container:MixpanelExample.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 = "MixpanelExample.app"
|
|
76
|
+
BlueprintName = "MixpanelExample"
|
|
77
|
+
ReferencedContainer = "container:MixpanelExample.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>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Resolve react_native_pods.rb with node to allow for hoisting
|
|
2
|
+
require Pod::Executable.execute_command('node', ['-p',
|
|
3
|
+
'require.resolve(
|
|
4
|
+
"react-native/scripts/react_native_pods.rb",
|
|
5
|
+
{paths: [process.argv[1]]},
|
|
6
|
+
)', __dir__]).strip
|
|
7
|
+
|
|
8
|
+
platform :ios, min_ios_version_supported
|
|
9
|
+
prepare_react_native_project!
|
|
10
|
+
|
|
11
|
+
linkage = ENV['USE_FRAMEWORKS']
|
|
12
|
+
if linkage != nil
|
|
13
|
+
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
|
|
14
|
+
use_frameworks! :linkage => linkage.to_sym
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
target 'MixpanelExample' do
|
|
18
|
+
config = use_native_modules!
|
|
19
|
+
|
|
20
|
+
use_react_native!(
|
|
21
|
+
:path => config[:reactNativePath],
|
|
22
|
+
# An absolute path to your application root.
|
|
23
|
+
:app_path => "#{Pod::Config.instance.installation_root}/.."
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
post_install do |installer|
|
|
27
|
+
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
|
|
28
|
+
react_native_post_install(
|
|
29
|
+
installer,
|
|
30
|
+
config[:reactNativePath],
|
|
31
|
+
:mac_catalyst_enabled => false,
|
|
32
|
+
# :ccache_enabled => true
|
|
33
|
+
)
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Metro configuration
|
|
6
|
+
* https://reactnative.dev/docs/metro
|
|
7
|
+
*
|
|
8
|
+
* @type {import('@react-native/metro-config').MetroConfig}
|
|
9
|
+
*/
|
|
10
|
+
const config = {
|
|
11
|
+
watchFolders: [
|
|
12
|
+
path.resolve(__dirname, '../..'), // Watch the root mixpanel-react-native directory
|
|
13
|
+
],
|
|
14
|
+
resolver: {
|
|
15
|
+
nodeModulesPaths: [
|
|
16
|
+
path.resolve(__dirname, 'node_modules'),
|
|
17
|
+
path.resolve(__dirname, '../../node_modules'),
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
|