react-native-ux-cam 6.0.2 → 6.0.3

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/CHANGELOG.md CHANGED
@@ -5,6 +5,8 @@
5
5
 
6
6
  Version | Changes
7
7
  ------- | ----------
8
+ 6.0.3 | Updated iOS SDK to 3.6.21 and Android to 3.6.37
9
+ 6.0.2 | Updated iOS SDK to 3.6.20 and Android to 3.6.36
8
10
  6.0.1 | Updated iOS SDK to 3.6.17 and Android to 3.6.33
9
11
  6.0.0 | Added support for new architecture
10
12
  5.4.16 | Updated iOS SDK to 3.6.13 and Android to 3.6.26
package/RNUxcam.podspec CHANGED
@@ -18,7 +18,7 @@ Pod::Spec.new do |s|
18
18
  s.requires_arc = true
19
19
  s.static_framework = true
20
20
 
21
- s.dependency 'UXCam' , '~> 3.6.20'
21
+ s.dependency 'UXCam' , '~> 3.6.21'
22
22
 
23
23
  if defined? install_modules_dependencies
24
24
  # Default React Native dependencies for 0.71 and above (new and legacy architecture)
@@ -69,7 +69,7 @@ rootProject.allprojects {
69
69
 
70
70
  dependencies {
71
71
  implementation 'com.facebook.react:react-native:+'
72
- implementation 'com.uxcam:uxcam:3.6.36'
72
+ implementation 'com.uxcam:uxcam:3.6.37'
73
73
  }
74
74
 
75
75
  if (isNewArchitectureEnabled()) {
@@ -42,6 +42,7 @@ public class RNUxcamModuleImpl {
42
42
  private static final String PARAM_ERROR_MESSAGE_KEY = "error";
43
43
 
44
44
  public static final String USER_APP_KEY = "userAppKey";
45
+ public static final String ENABLE_INTEGRATION_LOGGING = "enableIntegrationLogging";
45
46
  public static final String ENABLE_MUTLI_SESSION_RECORD = "enableMultiSessionRecord";
46
47
  public static final String ENABLE_CRASH_HANDLING = "enableCrashHandling";
47
48
  public static final String ENABLE_AUTOMATIC_SCREEN_NAME_TAGGING = "enableAutomaticScreenNameTagging";
@@ -56,7 +57,7 @@ public class RNUxcamModuleImpl {
56
57
  public static final String HIDE_GESTURES = "hideGestures";
57
58
 
58
59
  private static final String UXCAM_PLUGIN_TYPE = "react-native";
59
- private static final String UXCAM_REACT_PLUGIN_VERSION = "6.0.2";
60
+ private static final String UXCAM_REACT_PLUGIN_VERSION = "6.0.3";
60
61
 
61
62
  private final ReactApplicationContext reactContext;
62
63
 
@@ -111,6 +112,7 @@ public class RNUxcamModuleImpl {
111
112
  return null;
112
113
  }
113
114
 
115
+ Boolean enableIntegrationLogging = (Boolean) configMap.get(ENABLE_INTEGRATION_LOGGING);
114
116
  Boolean enableMultiSessionRecord = (Boolean) configMap.get(ENABLE_MUTLI_SESSION_RECORD);
115
117
  Boolean enableCrashHandling = (Boolean) configMap.get(ENABLE_CRASH_HANDLING);
116
118
  Boolean enableAutomaticScreenNameTagging = (Boolean) configMap.get(ENABLE_AUTOMATIC_SCREEN_NAME_TAGGING);
@@ -122,6 +124,8 @@ public class RNUxcamModuleImpl {
122
124
  occlusionList = convertToOcclusionList(occlusionObjects);
123
125
  }
124
126
  UXConfig.Builder uxConfigBuilder = new UXConfig.Builder(appKey);
127
+ if (enableIntegrationLogging != null)
128
+ uxConfigBuilder.enableIntegrationLogging(enableIntegrationLogging);
125
129
  if (enableMultiSessionRecord != null)
126
130
  uxConfigBuilder.enableMultiSessionRecord(enableMultiSessionRecord);
127
131
  if (enableCrashHandling != null)
@@ -406,6 +410,7 @@ public class RNUxcamModuleImpl {
406
410
  switch (type) {
407
411
  case Null:
408
412
  convertedProperties.put(key, "");
413
+ break;
409
414
  case Boolean:
410
415
  convertedProperties.put(key, properties.getBoolean(key));
411
416
  break;
@@ -15,6 +15,7 @@ static NSString* const RNUxcam_VerifyEvent_Name = @"UXCam_Verification_Event";
15
15
 
16
16
  // Configuration Keys
17
17
  static NSString* const RNUxcam_AppKey = @"userAppKey";
18
+ static NSString* const RNUxcam_IntegrationLogging = @"enableIntegrationLogging";
18
19
  static NSString* const RNUxcam_MultiSession = @"enableMultiSessionRecord";
19
20
  static NSString* const RNUxcam_CrashHandling = @"enableCrashHandling";
20
21
  static NSString* const RNUxcam_ScreenTag = @"enableAutomaticScreenNameTagging";
@@ -31,7 +32,7 @@ static NSString* const RNUxcam_HideGestures = @"hideGestures";
31
32
  static NSString* const RNUxcam_OverlayColor = @"color";
32
33
 
33
34
  static NSString* const RNUxcam_PluginType = @"react-native";
34
- static NSString* const RNUxcam_PluginVersion = @"6.0.2";
35
+ static NSString* const RNUxcam_PluginVersion = @"6.0.3";
35
36
 
36
37
 
37
38
  @interface RNUxcam ()
@@ -86,6 +87,7 @@ RCT_EXPORT_METHOD(configurationForUXCam:(RCTPromiseResolveBlock)resolve
86
87
  {
87
88
  NSDictionary *configDict = @{
88
89
  RNUxcam_AppKey: configuration.userAppKey,
90
+ RNUxcam_IntegrationLogging: @(configuration.enableIntegrationLogging),
89
91
  RNUxcam_MultiSession: @(configuration.enableMultiSessionRecord),
90
92
  RNUxcam_CrashHandling: @(configuration.enableCrashHandling),
91
93
  RNUxcam_ScreenTag: @(configuration.enableAutomaticScreenNameTagging),
@@ -118,6 +120,11 @@ RCT_EXPORT_METHOD(updateConfiguration:(NSDictionary *)config)
118
120
 
119
121
  - (void)updateConfiguration:(UXCamConfiguration *)configuration fromDict:(NSDictionary *)config
120
122
  {
123
+ NSNumber *enableIntegrationLogging = config[RNUxcam_IntegrationLogging];
124
+ if (enableIntegrationLogging)
125
+ {
126
+ configuration.enableIntegrationLogging = [RCTConvert BOOL:enableIntegrationLogging];
127
+ }
121
128
  NSNumber *enableMultiSessionRecord = config[RNUxcam_MultiSession];
122
129
  if (enableMultiSessionRecord)
123
130
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ux-cam",
3
- "version": "6.0.2",
3
+ "version": "6.0.3",
4
4
  "description": "React Native wrapper for uxcam.com.",
5
5
  "react-native": "src/index",
6
6
  "main": "src/index",
package/src/types.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export interface Configuration {
2
2
  userAppKey: string;
3
+ enableIntegrationLogging?: boolean;
3
4
  enableMultiSessionRecord?: boolean;
4
5
  enableCrashHandling?: boolean;
5
6
  enableAutomaticScreenNameTagging?: boolean;