@amplitude/plugin-engagement-react-native 0.1.1-alpha.6 → 0.1.1-alpha.9
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/android/build.gradle
CHANGED
|
@@ -76,12 +76,10 @@ dependencies {
|
|
|
76
76
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
77
77
|
|
|
78
78
|
// Amplitude Engagement SDK
|
|
79
|
-
implementation "com.amplitude:amplitude-engagement-android:1.0.
|
|
79
|
+
implementation "com.amplitude:amplitude-engagement-android:1.0.14"
|
|
80
80
|
|
|
81
81
|
// Amplitude Analytics SDK (required dependency)
|
|
82
82
|
implementation "com.amplitude:analytics-android:1.+"
|
|
83
|
-
|
|
84
|
-
//implementation files('/Users/jared/workspace/_2-amplitude-gs-mobile-sdk/android/engagement/build/outputs/aar/engagement-debug.aar')
|
|
85
83
|
}
|
|
86
84
|
|
|
87
85
|
react {
|
|
@@ -43,7 +43,7 @@ class PluginEngagementReactNativeModule(val reactContext: ReactApplicationContex
|
|
|
43
43
|
|
|
44
44
|
return synchronized(this) {
|
|
45
45
|
runBlocking(Dispatchers.Main) {
|
|
46
|
-
val amplitudeEngagement =
|
|
46
|
+
val amplitudeEngagement = __ReactNative__AESDK(reactContext, apiKey, AmplitudeInitOptions())
|
|
47
47
|
|
|
48
48
|
// The React Native environment seems to have a different activity management lifecycle;
|
|
49
49
|
// so we need to register our own listener to get the current activity.
|
|
@@ -35,7 +35,7 @@ var _id = 0
|
|
|
35
35
|
return DispatchQueue.main.sync {
|
|
36
36
|
_id += 1;
|
|
37
37
|
let id = _id + 1;
|
|
38
|
-
instances[id] = (apiKey,
|
|
38
|
+
instances[id] = (apiKey, __ReactNative__AESDK(apiKey, AmplitudeInitOptions(logLevel: AmplitudeLogLevel.verbose)))
|
|
39
39
|
return id
|
|
40
40
|
}
|
|
41
41
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amplitude/plugin-engagement-react-native",
|
|
3
|
-
"version": "0.1.1-alpha.
|
|
3
|
+
"version": "0.1.1-alpha.9",
|
|
4
4
|
"description": "Amplitude Engagement plugin for React Native",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -64,7 +64,6 @@
|
|
|
64
64
|
"@eslint/compat": "^1.2.7",
|
|
65
65
|
"@eslint/eslintrc": "^3.3.0",
|
|
66
66
|
"@eslint/js": "^9.22.0",
|
|
67
|
-
"@evilmartians/lefthook": "^1.5.0",
|
|
68
67
|
"@react-native-community/cli": "15.0.0-alpha.2",
|
|
69
68
|
"@react-native/babel-preset": "0.79.2",
|
|
70
69
|
"@react-native/eslint-config": "^0.78.0",
|