@truewatchtech/react-native-session-replay 0.4.1 → 0.4.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.
@@ -17,8 +17,8 @@ Pod::Spec.new do |s|
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
18
 
19
19
  s.dependency "React-Core"
20
- s.dependency "FTMobileSDK", "1.6.2"
21
- s.dependency "FTMobileSDK/FTSessionReplay", "1.6.2"
20
+ s.dependency "FTMobileSDK", "1.6.5"
21
+ s.dependency "FTMobileSDK/FTSessionReplay", "1.6.5"
22
22
 
23
23
  xcconfig = {
24
24
  "HEADER_SEARCH_PATHS" => "$(inherited) " +
@@ -150,7 +150,7 @@ repositories {
150
150
  jcenter()
151
151
  google()
152
152
  maven {
153
- url 'https://mvnrepo.jiagouyun.com/repository/maven-releases'
153
+ url 'https://mvnrepo.truewatch.com/repository/maven-releases'
154
154
  }
155
155
 
156
156
  def found = false
@@ -221,8 +221,8 @@ repositories {
221
221
 
222
222
  dependencies {
223
223
  implementation 'com.facebook.react:react-native:+'
224
- implementation 'com.truewatch.ft.mobile.sdk.tracker.agent:ft-sdk:1.7.0'
224
+ implementation 'com.truewatch.ft.mobile.sdk.tracker.agent:ft-sdk:1.7.2'
225
225
  implementation 'com.truewatch.ft.mobile.sdk.tracker.agent:ft-native:1.1.2'
226
- implementation 'com.truewatch.ft.mobile.sdk.tracker.agent:ft-session-replay:0.1.3'
226
+ implementation 'com.truewatch.ft.mobile.sdk.tracker.agent:ft-session-replay:0.1.5'
227
227
  implementation 'com.google.code.gson:gson:2.8.5'
228
228
  }
@@ -46,12 +46,18 @@ public class FTSessionReplayImpl {
46
46
 
47
47
  // Handle deprecated privacy setting for backward compatibility
48
48
  if (privacy != null) {
49
- SessionReplayPrivacy sessionReplayPrivacy = switch (privacy) {
50
- case 0 -> SessionReplayPrivacy.MASK;
51
- case 1 -> SessionReplayPrivacy.ALLOW;
52
- case 2 -> SessionReplayPrivacy.MASK_USER_INPUT;
53
- default -> null;
54
- };
49
+ SessionReplayPrivacy sessionReplayPrivacy = null;
50
+ switch (privacy) {
51
+ case 0:
52
+ sessionReplayPrivacy = SessionReplayPrivacy.MASK;
53
+ break;
54
+ case 1:
55
+ sessionReplayPrivacy = SessionReplayPrivacy.ALLOW;
56
+ break;
57
+ case 2:
58
+ sessionReplayPrivacy = SessionReplayPrivacy.MASK_USER_INPUT;
59
+ break;
60
+ }
55
61
  sessionReplayConfig.setPrivacy(sessionReplayPrivacy);
56
62
  }
57
63
 
@@ -99,7 +105,8 @@ public class FTSessionReplayImpl {
99
105
  }
100
106
 
101
107
  // Handle enableLinkRUMKeys
102
- if (enableLinkRUMKeysObj instanceof ReadableArray rumKeysArray) {
108
+ if (enableLinkRUMKeysObj instanceof ReadableArray) {
109
+ ReadableArray rumKeysArray = (ReadableArray) enableLinkRUMKeysObj;
103
110
  String[] rumKeys = new String[rumKeysArray.size()];
104
111
  for (int i = 0; i < rumKeysArray.size(); i++) {
105
112
  rumKeys[i] = rumKeysArray.getString(i);
@@ -8,7 +8,7 @@
8
8
  #import <Foundation/Foundation.h>
9
9
  #import <FTMobileSDK/FTSRNodeWireframesBuilder.h>
10
10
  #import <React/RCTUIManager.h>
11
- @class FTViewAttributes,FTViewTreeRecorder;
11
+ @class FTViewAttributes,FTViewTreeRecorder,FTSRColorSnapshot;
12
12
  NS_ASSUME_NONNULL_BEGIN
13
13
 
14
14
  @interface FTRCTTextViewBuilder : NSObject<FTSRNodeWireframesBuilder>
@@ -17,7 +17,7 @@ NS_ASSUME_NONNULL_BEGIN
17
17
  @property (nonatomic, assign) int64_t wireframeID;
18
18
  @property (nonatomic, strong) UIColor * backgroundColor;
19
19
  @property (nonatomic, assign) NSTextAlignment textAlignment;
20
- @property (nonatomic, strong) UIColor *textColor;
20
+ @property (nonatomic, strong, nullable) FTSRColorSnapshot *textColor;
21
21
  @property (nonatomic, assign) CGFloat fontSize;
22
22
  @property (nonatomic, assign) CGRect contentRect;
23
23
  @property (nonatomic, strong) id<FTSRTextObfuscatingProtocol> textObfuscator;
@@ -47,7 +47,7 @@
47
47
  builder.attributes = attributes;
48
48
  builder.text = textProperties.text;
49
49
  builder.textAlignment = textProperties.alignment;
50
- builder.textColor = textProperties.foregroundColor;
50
+ builder.textColor = [FTSRColorSnapshot snapshotWithColor:textProperties.foregroundColor traitCollection:view.traitCollection];
51
51
  builder.textObfuscator = self.textObfuscator(context,attributes);
52
52
  builder.fontSize = textProperties.fontSize;
53
53
  builder.wireframeRect = attributes.frame;
@@ -148,9 +148,9 @@
148
148
  FTSRTextWireframe *wireframe = [[FTSRTextWireframe alloc]initWithIdentifier:self.wireframeID frame:frame];
149
149
 
150
150
  wireframe.text = [self.textObfuscator mask:self.text];
151
- wireframe.border = [[FTSRShapeBorder alloc]initWithColor:[FTSRUtils colorHexString:self.attributes.layerBorderColor] width:self.attributes.layerBorderWidth];
152
- wireframe.shapeStyle = [[FTSRShapeStyle alloc]initWithBackgroundColor:[FTSRUtils colorHexString:self.attributes.backgroundColor.CGColor] cornerRadius:@(self.attributes.layerCornerRadius) opacity:@(self.attributes.alpha)];
153
- wireframe.textStyle = [[FTSRTextStyle alloc]initWithSize:self.fontSize?self.fontSize:RCTTextPropertiesDefaultFontSize color:[FTSRUtils colorHexString:self.textColor.CGColor] family:nil];
151
+ wireframe.border = [[FTSRShapeBorder alloc]initWithColor:self.attributes.layerBorderColor.hexString width:self.attributes.layerBorderWidth];
152
+ wireframe.shapeStyle = [[FTSRShapeStyle alloc]initWithBackgroundColor:self.attributes.backgroundColor.hexString cornerRadius:@(self.attributes.layerCornerRadius) opacity:@(self.attributes.alpha)];
153
+ wireframe.textStyle = [[FTSRTextStyle alloc]initWithSize:self.fontSize?self.fontSize:RCTTextPropertiesDefaultFontSize color:self.textColor.hexString family:nil];
154
154
  FTSRTextPosition *textPosition = [[FTSRTextPosition alloc]init];
155
155
  textPosition.alignment = [[FTAlignment alloc]initWithTextAlignment:self.textAlignment vertical:@"top"];
156
156
  CGRect textFrame = [self textFrame];
@@ -169,4 +169,3 @@
169
169
  @end
170
170
 
171
171
 
172
-
@@ -110,7 +110,7 @@
110
110
  isa = PBXProject;
111
111
  attributes = {
112
112
  LastUpgradeCheck = 0920;
113
- ORGANIZATIONNAME = CloudCare;
113
+ ORGANIZATIONNAME = TrueWatch;
114
114
  TargetAttributes = {
115
115
  58B511DA1A9E6C8500147676 = {
116
116
  CreatedOnToolsVersion = 6.1.1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truewatchtech/react-native-session-replay",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Session Replay package for TrueWatch React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",