react-native-userleap 2.13.0 → 2.14.0

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 (33) hide show
  1. package/android/.gradle/7.4/checksums/checksums.lock +0 -0
  2. package/android/.gradle/7.4/checksums/md5-checksums.bin +0 -0
  3. package/android/.gradle/7.4/checksums/sha1-checksums.bin +0 -0
  4. package/android/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  5. package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  6. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  7. package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
  8. package/android/.idea/.gitignore +3 -0
  9. package/android/.idea/gradle.xml +12 -0
  10. package/android/.idea/misc.xml +10 -0
  11. package/android/.idea/vcs.xml +6 -0
  12. package/android/.idea/workspace.xml +43 -0
  13. package/android/build.gradle +1 -1
  14. package/android/local.properties +8 -0
  15. package/android/src/main/java/com/userleap/reactnative/UserLeapModule.java +5 -0
  16. package/index.d.ts +1 -0
  17. package/index.js +4 -2
  18. package/ios/.DS_Store +0 -0
  19. package/ios/UserLeapBindings.m +5 -0
  20. package/ios/UserLeapBindings.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  21. package/ios/UserLeapBindings.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  22. package/ios/UserLeapBindings.xcodeproj/project.xcworkspace/xcuserdata/joyce.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  23. package/ios/UserLeapBindings.xcodeproj/xcuserdata/joyce.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +24 -0
  24. package/ios/UserLeapBindings.xcodeproj/xcuserdata/joyce.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
  25. package/package.json +1 -1
  26. package/react-native-userleap.podspec +1 -1
  27. package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
  28. package/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  29. package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
  30. package/ios/UserleapBindings.xcworkspace/xcuserdata/andrewpark.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  31. /package/android/.gradle/{7.4.2 → 7.4}/dependencies-accessors/gc.properties +0 -0
  32. /package/android/.gradle/{7.4.2 → 7.4}/fileChanges/last-build.bin +0 -0
  33. /package/android/.gradle/{7.4.2 → 7.4}/gc.properties +0 -0
@@ -1,2 +1,2 @@
1
- #Mon Jan 09 14:28:42 PST 2023
2
- gradle.version=7.4.2
1
+ #Tue Feb 07 14:47:54 PST 2023
2
+ gradle.version=7.4
@@ -0,0 +1,3 @@
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
@@ -0,0 +1,12 @@
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
+ </GradleProjectSettings>
10
+ </option>
11
+ </component>
12
+ </project>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ExternalStorageConfigurationManager" enabled="true" />
4
+ <component name="ProjectRootManager" version="2" project-jdk-name="Android Studio default JDK" project-jdk-type="JavaSDK">
5
+ <output url="file://$PROJECT_DIR$/build/classes" />
6
+ </component>
7
+ <component name="ProjectType">
8
+ <option name="id" value="Android" />
9
+ </component>
10
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$/../../.." vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,43 @@
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="b0e65526-1895-4ee0-9d11-6fa1d2d1cd92" name="Changes" comment="" />
8
+ <option name="SHOW_DIALOG" value="false" />
9
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
+ <option name="LAST_RESOLUTION" value="IGNORE" />
12
+ </component>
13
+ <component name="Git.Settings">
14
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/../../.." />
15
+ </component>
16
+ <component name="MarkdownSettingsMigration">
17
+ <option name="stateVersion" value="1" />
18
+ </component>
19
+ <component name="ProjectId" id="2LQj6Ew7cidR3z2F3C0uqbRo8nJ" />
20
+ <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
21
+ <component name="ProjectViewState">
22
+ <option name="hideEmptyMiddlePackages" value="true" />
23
+ <option name="showLibraryContents" value="true" />
24
+ </component>
25
+ <component name="PropertiesComponent">
26
+ <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
27
+ <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
28
+ <property name="RunOnceActivity.cidr.known.project.marker" value="true" />
29
+ <property name="cidr.known.project.marker" value="true" />
30
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
31
+ </component>
32
+ <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
33
+ <component name="TaskManager">
34
+ <task active="true" id="Default" summary="Default task">
35
+ <changelist id="b0e65526-1895-4ee0-9d11-6fa1d2d1cd92" name="Changes" comment="" />
36
+ <created>1675810024540</created>
37
+ <option name="number" value="Default" />
38
+ <option name="presentableId" value="Default" />
39
+ <updated>1675810024540</updated>
40
+ </task>
41
+ <servers />
42
+ </component>
43
+ </project>
@@ -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.9.0") // update this version on android updates
83
+ implementation ("com.userleap:userleap-android-sdk:2.12.0") // update this version on android updates
84
84
  }
@@ -0,0 +1,8 @@
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
+ #Tue Feb 07 14:47:02 PST 2023
8
+ sdk.dir=/Users/joyce/Library/Android/sdk
@@ -56,6 +56,11 @@ public class UserLeapModule extends ReactContextBaseJavaModule {
56
56
  UserLeap.INSTANCE.configure(reactContext, environment);
57
57
  }
58
58
 
59
+ @ReactMethod
60
+ public void configure(String environment, ReadableMap configuration) {
61
+ UserLeap.INSTANCE.configure(reactContext, environment, stringifyMap(configuration));
62
+ }
63
+
59
64
  @ReactMethod
60
65
  public void presentSurvey() {
61
66
  FragmentActivity fragmentActivity = getFragmentActivity();
package/index.d.ts CHANGED
@@ -7,6 +7,7 @@ declare namespace UserLeap {
7
7
  function visitorIdentifier(): number;
8
8
  function visitorIdentifierString(): string;
9
9
  function configure(environment: string): void;
10
+ function configure(environment: string, configuration?: {[key: string]: any}): void;
10
11
  function presentSurvey(): void;
11
12
  function track(event: string, surveyStateCallback: ((surveyState: string) => void)): void;
12
13
  function trackWithProperties(event: string, userId: string | undefined, partnerAnonymousId: string | undefined, properties: {[key: string]: any}, surveyStateCallback: ((surveyState: string) => void)): void;
package/index.js CHANGED
@@ -35,9 +35,11 @@ const visitorIdentifierString = () => {
35
35
  }
36
36
  }
37
37
 
38
- const configure = (environment) => {
38
+ const configure = (environment, configuration = {}) => {
39
+ const source = configuration.source === 'react-native-segment' ? 'react-native-segment' : 'react-native';
40
+ const defaultConfiguration = {'x-ul-installation-method': `${Platform.OS}-${source}`};
39
41
  if (isValidPlatform()) {
40
- NativeModules.UserLeapBindings.configure(environment);
42
+ NativeModules.UserLeapBindings.configure(environment, defaultConfiguration);
41
43
  }
42
44
  }
43
45
 
package/ios/.DS_Store CHANGED
Binary file
@@ -43,6 +43,11 @@ RCT_EXPORT_METHOD(configure:(NSString *)environmentId)
43
43
  [[UserLeap shared] configureWithEnvironment:environmentId];
44
44
  }
45
45
 
46
+ RCT_EXPORT_METHOD(configure:(NSString *)environmentId configuration:(NSDictionary *)configuration )
47
+ {
48
+ [[UserLeap shared] configureWithEnvironment:environmentId configuration:configuration];
49
+ }
50
+
46
51
  RCT_EXPORT_METHOD(presentSurvey)
47
52
  {
48
53
  [[UserLeap shared] presentSurveyFrom:RCTPresentedViewController()];
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Workspace
3
+ version = "1.0">
4
+ <FileRef
5
+ location = "self:">
6
+ </FileRef>
7
+ </Workspace>
@@ -0,0 +1,8 @@
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>
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Bucket
3
+ uuid = "1DC3D811-6420-409F-8723-EEFA19447CBE"
4
+ type = "1"
5
+ version = "2.0">
6
+ <Breakpoints>
7
+ <BreakpointProxy
8
+ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
9
+ <BreakpointContent
10
+ uuid = "FC32D3CC-7727-4115-B523-3170E5F04F1D"
11
+ shouldBeEnabled = "Yes"
12
+ ignoreCount = "0"
13
+ continueAfterRunningActions = "No"
14
+ filePath = "UserLeapBindings.m"
15
+ startingColumnNumber = "9223372036854775807"
16
+ endingColumnNumber = "9223372036854775807"
17
+ startingLineNumber = "42"
18
+ endingLineNumber = "42"
19
+ landmarkName = "RCT_EXPORT_METHOD(environmentId)"
20
+ landmarkType = "9">
21
+ </BreakpointContent>
22
+ </BreakpointProxy>
23
+ </Breakpoints>
24
+ </Bucket>
@@ -0,0 +1,14 @@
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-userleap",
3
- "version": "2.13.0",
3
+ "version": "2.14.0",
4
4
  "description": "React Native module for UserLeap",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -19,5 +19,5 @@ Pod::Spec.new do |s|
19
19
  s.requires_arc = true
20
20
 
21
21
  s.dependency "React"
22
- s.dependency "UserLeapKit", "4.12.1"
22
+ s.dependency "UserLeapKit", "4.13.0"
23
23
  end
File without changes