react-native-userleap 2.15.0 → 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 +1 -1
- package/react-native-userleap.podspec +2 -2
- package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/configuration-cache/gc.properties +0 -0
- package/android/.idea/.gitignore +0 -3
- package/android/.idea/gradle.xml +0 -13
- package/android/.idea/misc.xml +0 -9
- package/android/.idea/modules/android.iml +0 -18
- package/android/.idea/modules.xml +0 -8
- package/android/.idea/vcs.xml +0 -6
- package/android/.idea/workspace.xml +0 -44
- package/android/local.properties +0 -8
- package/ios/UserLeapBindings.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/UserLeapBindings.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/UserLeapBindings.xcodeproj/project.xcworkspace/xcuserdata/cindy.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/UserLeapBindings.xcodeproj/xcuserdata/cindy.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/ios/UserleapBindings.xcworkspace/xcuserdata/cindy.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- /package/android/.gradle/{6.8 → 7.4.2}/fileChanges/last-build.bin +0 -0
- /package/android/.gradle/{6.8 → 7.4.2}/gc.properties +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
|
Binary file
|
|
Binary file
|
|
File without changes
|
package/android/.idea/.gitignore
DELETED
package/android/.idea/gradle.xml
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="GradleSettings">
|
|
4
|
-
<option name="linkedExternalProjectsSettings">
|
|
5
|
-
<GradleProjectSettings>
|
|
6
|
-
<option name="testRunner" value="GRADLE" />
|
|
7
|
-
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
|
8
|
-
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
9
|
-
<option name="resolveModulePerSourceSet" value="false" />
|
|
10
|
-
</GradleProjectSettings>
|
|
11
|
-
</option>
|
|
12
|
-
</component>
|
|
13
|
-
</project>
|
package/android/.idea/misc.xml
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectRootManager" version="2" project-jdk-name="Android Studio default JDK" project-jdk-type="JavaSDK">
|
|
4
|
-
<output url="file://$PROJECT_DIR$/build/classes" />
|
|
5
|
-
</component>
|
|
6
|
-
<component name="ProjectType">
|
|
7
|
-
<option name="id" value="Android" />
|
|
8
|
-
</component>
|
|
9
|
-
</project>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module external.linked.project.id=":" external.linked.project.path="$MODULE_DIR$/../.." external.root.project.path="$MODULE_DIR$/../.." external.system.id="GRADLE" type="JAVA_MODULE" version="4">
|
|
3
|
-
<component name="FacetManager">
|
|
4
|
-
<facet type="android-gradle" name="Android-Gradle">
|
|
5
|
-
<configuration>
|
|
6
|
-
<option name="GRADLE_PROJECT_PATH" value=":" />
|
|
7
|
-
<option name="LAST_SUCCESSFUL_SYNC_AGP_VERSION" />
|
|
8
|
-
<option name="LAST_KNOWN_AGP_VERSION" />
|
|
9
|
-
</configuration>
|
|
10
|
-
</facet>
|
|
11
|
-
</component>
|
|
12
|
-
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
13
|
-
<exclude-output />
|
|
14
|
-
<content url="file://$MODULE_DIR$/../.." />
|
|
15
|
-
<orderEntry type="inheritedJdk" />
|
|
16
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
17
|
-
</component>
|
|
18
|
-
</module>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/modules/android.iml" filepath="$PROJECT_DIR$/.idea/modules/android.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
package/android/.idea/vcs.xml
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="AutoImportSettings">
|
|
4
|
-
<option name="autoReloadType" value="NONE" />
|
|
5
|
-
</component>
|
|
6
|
-
<component name="ChangeListManager">
|
|
7
|
-
<list default="true" id="f0299780-5fc1-41c4-9439-fe6e942993b1" name="Default Changelist" comment="">
|
|
8
|
-
<change beforePath="$PROJECT_DIR$/../../android/userleap/src/main/assets/snippet.js" beforeDir="false" afterPath="$PROJECT_DIR$/../../android/userleap/src/main/assets/snippet.js" afterDir="false" />
|
|
9
|
-
<change beforePath="$PROJECT_DIR$/../../ios/UserLeapKit/sprig_web_assets.bundle/snippet.js" beforeDir="false" afterPath="$PROJECT_DIR$/../../ios/UserLeapKit/sprig_web_assets.bundle/snippet.js" afterDir="false" />
|
|
10
|
-
<change beforePath="$PROJECT_DIR$/../../web/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/../../web/index.html" afterDir="false" />
|
|
11
|
-
</list>
|
|
12
|
-
<option name="SHOW_DIALOG" value="false" />
|
|
13
|
-
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
14
|
-
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
15
|
-
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
16
|
-
</component>
|
|
17
|
-
<component name="Git.Settings">
|
|
18
|
-
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/../../.." />
|
|
19
|
-
</component>
|
|
20
|
-
<component name="ProjectId" id="2MQGTdVikZaoZpIqQxz6BQhwakV" />
|
|
21
|
-
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
|
22
|
-
<component name="ProjectViewState">
|
|
23
|
-
<option name="hideEmptyMiddlePackages" value="true" />
|
|
24
|
-
<option name="showLibraryContents" value="true" />
|
|
25
|
-
</component>
|
|
26
|
-
<component name="PropertiesComponent">
|
|
27
|
-
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
|
28
|
-
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
|
29
|
-
<property name="RunOnceActivity.cidr.known.project.marker" value="true" />
|
|
30
|
-
<property name="cidr.known.project.marker" value="true" />
|
|
31
|
-
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
|
32
|
-
</component>
|
|
33
|
-
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
|
34
|
-
<component name="TaskManager">
|
|
35
|
-
<task active="true" id="Default" summary="Default task">
|
|
36
|
-
<changelist id="f0299780-5fc1-41c4-9439-fe6e942993b1" name="Default Changelist" comment="" />
|
|
37
|
-
<created>1677692402007</created>
|
|
38
|
-
<option name="number" value="Default" />
|
|
39
|
-
<option name="presentableId" value="Default" />
|
|
40
|
-
<updated>1677692402007</updated>
|
|
41
|
-
</task>
|
|
42
|
-
<servers />
|
|
43
|
-
</component>
|
|
44
|
-
</project>
|
package/android/local.properties
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
## This file must *NOT* be checked into Version Control Systems,
|
|
2
|
-
# as it contains information specific to your local configuration.
|
|
3
|
-
#
|
|
4
|
-
# Location of the SDK. This is only used by Gradle.
|
|
5
|
-
# For customization when using a Version Control System, please read the
|
|
6
|
-
# header note.
|
|
7
|
-
#Wed Mar 01 09:40:01 PST 2023
|
|
8
|
-
sdk.dir=/Users/cindy/Library/Android/sdk
|
|
Binary file
|
|
@@ -1,14 +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>SchemeUserState</key>
|
|
6
|
-
<dict>
|
|
7
|
-
<key>UserLeapBindings.xcscheme_^#shared#^_</key>
|
|
8
|
-
<dict>
|
|
9
|
-
<key>orderHint</key>
|
|
10
|
-
<integer>0</integer>
|
|
11
|
-
</dict>
|
|
12
|
-
</dict>
|
|
13
|
-
</dict>
|
|
14
|
-
</plist>
|
package/ios/UserleapBindings.xcworkspace/xcuserdata/cindy.xcuserdatad/UserInterfaceState.xcuserstate
DELETED
|
Binary file
|
|
File without changes
|
|
File without changes
|