react-native-userleap 2.15.1 → 2.15.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/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/userleap/reactnative/UserLeapModule.java +5 -0
- package/index.d.ts +2 -1
- package/index.js +7 -0
- package/ios/UserLeapBindings.m +5 -0
- package/package.json +3 -3
- package/react-native-userleap.podspec +2 -2
- package/android/build/.transforms/e55b37d1b9f63ccbbccdf66434dc5695/results.bin +0 -1
- package/android/build/.transforms/e55b37d1b9f63ccbbccdf66434dc5695/transformed/classes/classes.dex +0 -0
- package/android/build/generated/source/buildConfig/debug/com/userleap/reactnative/BuildConfig.java +0 -10
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +0 -9
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +0 -18
- package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +0 -4
- package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +0 -1
- package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/R.txt +0 -6121
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
- package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +0 -1
- package/android/build/intermediates/incremental/packageDebugResources/merger.xml +0 -2
- package/android/build/intermediates/javac/debug/classes/com/userleap/reactnative/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/userleap/reactnative/UserLeapModule$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/userleap/reactnative/UserLeapModule$2.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/userleap/reactnative/UserLeapModule.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/userleap/reactnative/UserLeapPackage.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +0 -2
- package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +0 -11
- package/android/build/intermediates/merged_manifest/debug/AndroidManifest.xml +0 -9
- package/android/build/intermediates/navigation_json/debug/navigation.json +0 -1
- package/android/build/intermediates/packaged_manifests/debug/output-metadata.json +0 -18
- package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +0 -4511
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -25
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/ios/.DS_Store +0 -0
- package/ios/UserleapBindings.xcworkspace/xcuserdata/earl.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
|
Binary file
|
|
Binary file
|
package/android/build.gradle
CHANGED
|
@@ -80,5 +80,5 @@ repositories {
|
|
|
80
80
|
dependencies {
|
|
81
81
|
//noinspection GradleDynamicVersion
|
|
82
82
|
implementation 'com.facebook.react:react-native:+' // From node_modules
|
|
83
|
-
implementation ("com.userleap:userleap-android-sdk:2.
|
|
84
|
-
}
|
|
83
|
+
implementation ("com.userleap:userleap-android-sdk:2.15.1") // update this version on android updates
|
|
84
|
+
}
|
|
@@ -136,6 +136,11 @@ public class UserLeapModule extends ReactContextBaseJavaModule {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
+
@ReactMethod
|
|
140
|
+
public void setPreviewKey(String previewKey) {
|
|
141
|
+
UserLeap.INSTANCE.setPreviewKey(previewKey);
|
|
142
|
+
}
|
|
143
|
+
|
|
139
144
|
@ReactMethod
|
|
140
145
|
public void setUserIdentifier(String identifier) {
|
|
141
146
|
UserLeap.INSTANCE.setUserIdentifier(identifier);
|
package/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ declare namespace UserLeap {
|
|
|
8
8
|
function visitorIdentifierString(): string;
|
|
9
9
|
function configure(environment: string): void;
|
|
10
10
|
function configure(environment: string, configuration?: {[key: string]: any}): void;
|
|
11
|
+
function setPreviewKey(previewKey: string): void;
|
|
11
12
|
function presentSurvey(): void;
|
|
12
13
|
function track(event: string, surveyStateCallback: ((surveyState: string) => void)): void;
|
|
13
14
|
function trackWithProperties(event: string, userId: string | undefined, partnerAnonymousId: string | undefined, properties: {[key: string]: any}, surveyStateCallback: ((surveyState: string) => void)): void;
|
|
@@ -22,4 +23,4 @@ declare namespace UserLeap {
|
|
|
22
23
|
function trackAndPresent(event: string): void;
|
|
23
24
|
function trackIdentifyAndPresent(event: string, userId: string | undefined, partnerAnonymousId: string | undefined): void;
|
|
24
25
|
}
|
|
25
|
-
export default UserLeap;
|
|
26
|
+
export default UserLeap;
|
package/index.js
CHANGED
|
@@ -43,6 +43,12 @@ const configure = (environment, configuration = {}) => {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
const setPreviewKey = (previewKey) => {
|
|
47
|
+
if (isValidPlatform()) {
|
|
48
|
+
NativeModules.UserLeapBindings.setPreviewKey(previewKey);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
46
52
|
const presentSurvey = () => {
|
|
47
53
|
if (isValidPlatform()) {
|
|
48
54
|
NativeModules.UserLeapBindings.presentSurvey();
|
|
@@ -127,6 +133,7 @@ const UserLeap = {
|
|
|
127
133
|
visitorIdentifierString,
|
|
128
134
|
configure,
|
|
129
135
|
presentSurvey,
|
|
136
|
+
setPreviewKey,
|
|
130
137
|
track,
|
|
131
138
|
trackWithProperties,
|
|
132
139
|
trackAndIdentify,
|
package/ios/UserLeapBindings.m
CHANGED
|
@@ -48,6 +48,11 @@ RCT_EXPORT_METHOD(configure:(NSString *)environmentId configuration:(NSDictionar
|
|
|
48
48
|
[[UserLeap shared] configureWithEnvironment:environmentId configuration:configuration];
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
RCT_EXPORT_METHOD(setPreviewKey:(NSString *)previewKey)
|
|
52
|
+
{
|
|
53
|
+
[[UserLeap shared] setPreviewKey:previewKey];
|
|
54
|
+
}
|
|
55
|
+
|
|
51
56
|
RCT_EXPORT_METHOD(presentSurvey)
|
|
52
57
|
{
|
|
53
58
|
[[UserLeap shared] presentSurveyFrom:RCTPresentedViewController()];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-userleap",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.2",
|
|
4
4
|
"description": "React Native module for UserLeap",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -32,6 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
34
34
|
"devDependencies": {
|
|
35
|
+
"react": "17.0.2",
|
|
36
|
+
"react-native": "0.67.4",
|
|
35
37
|
"@babel/core": "^7.12.9",
|
|
36
38
|
"@babel/runtime": "^7.12.5",
|
|
37
39
|
"@react-native-community/eslint-config": "^2.0.0",
|
|
@@ -39,8 +41,6 @@
|
|
|
39
41
|
"eslint": "^7.14.0",
|
|
40
42
|
"jest": "^26.6.3",
|
|
41
43
|
"metro-react-native-babel-preset": "^0.66.2",
|
|
42
|
-
"react": "17.0.2",
|
|
43
|
-
"react-native": "0.67.4",
|
|
44
44
|
"react-test-renderer": "17.0.2"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
o/classes
|
package/android/build/.transforms/e55b37d1b9f63ccbbccdf66434dc5695/transformed/classes/classes.dex
DELETED
|
Binary file
|
package/android/build/generated/source/buildConfig/debug/com/userleap/reactnative/BuildConfig.java
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Automatically generated file. DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
package com.userleap.reactnative;
|
|
5
|
-
|
|
6
|
-
public final class BuildConfig {
|
|
7
|
-
public static final boolean DEBUG = Boolean.parseBoolean("true");
|
|
8
|
-
public static final String LIBRARY_PACKAGE_NAME = "com.userleap.reactnative";
|
|
9
|
-
public static final String BUILD_TYPE = "debug";
|
|
10
|
-
}
|
package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"artifactType": {
|
|
4
|
-
"type": "AAPT_FRIENDLY_MERGED_MANIFESTS",
|
|
5
|
-
"kind": "Directory"
|
|
6
|
-
},
|
|
7
|
-
"applicationId": "com.userleap.reactnative",
|
|
8
|
-
"variantName": "debug",
|
|
9
|
-
"elements": [
|
|
10
|
-
{
|
|
11
|
-
"type": "SINGLE",
|
|
12
|
-
"filters": [],
|
|
13
|
-
"attributes": [],
|
|
14
|
-
"outputFile": "AndroidManifest.xml"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"elementType": "File"
|
|
18
|
-
}
|
package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
Binary file
|
|
Binary file
|