react-native-ux-cam 6.0.1 → 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
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
2
2
|
|
|
3
|
-
folly_version = '2024.01.01.00'
|
|
4
3
|
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
5
4
|
|
|
6
5
|
Pod::Spec.new do |s|
|
|
@@ -19,22 +18,28 @@ Pod::Spec.new do |s|
|
|
|
19
18
|
s.requires_arc = true
|
|
20
19
|
s.static_framework = true
|
|
21
20
|
|
|
22
|
-
s.dependency '
|
|
23
|
-
s.dependency 'UXCam' , '~> 3.6.17'
|
|
21
|
+
s.dependency 'UXCam' , '~> 3.6.21'
|
|
24
22
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
s
|
|
28
|
-
|
|
23
|
+
if defined? install_modules_dependencies
|
|
24
|
+
# Default React Native dependencies for 0.71 and above (new and legacy architecture)
|
|
25
|
+
install_modules_dependencies(s)
|
|
26
|
+
else
|
|
27
|
+
s.dependency 'React-Core'
|
|
28
|
+
|
|
29
|
+
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
30
|
+
# New Architecture on React Native 0.70 and older
|
|
31
|
+
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
|
32
|
+
s.pod_target_xcconfig = {
|
|
29
33
|
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
30
34
|
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
s.dependency "React-Codegen"
|
|
38
|
+
s.dependency "RCT-Folly"
|
|
39
|
+
s.dependency "RCTRequired"
|
|
40
|
+
s.dependency "RCTTypeSafety"
|
|
41
|
+
s.dependency "ReactCommon/turbomodule/core"
|
|
42
|
+
end
|
|
38
43
|
end
|
|
39
44
|
|
|
40
45
|
end
|
package/android/build.gradle
CHANGED
|
@@ -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.
|
|
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;
|
package/ios/RNUxcam/RNUxcam.mm
CHANGED
|
@@ -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.
|
|
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