@cloudcare/react-native-session-replay 0.4.2-alpha.1 → 0.4.2-alpha.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) " +
@@ -221,8 +221,8 @@ repositories {
221
221
 
222
222
  dependencies {
223
223
  implementation 'com.facebook.react:react-native:+'
224
- implementation 'com.cloudcare.ft.mobile.sdk.tracker.agent:ft-sdk:1.7.0'
224
+ implementation 'com.cloudcare.ft.mobile.sdk.tracker.agent:ft-sdk:1.7.2'
225
225
  implementation 'com.cloudcare.ft.mobile.sdk.tracker.agent:ft-native:1.1.2'
226
- implementation 'com.cloudcare.ft.mobile.sdk.tracker.agent:ft-session-replay:0.1.3'
226
+ implementation 'com.cloudcare.ft.mobile.sdk.tracker.agent:ft-session-replay:0.1.5'
227
227
  implementation 'com.google.code.gson:gson:2.8.5'
228
228
  }
@@ -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
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudcare/react-native-session-replay",
3
- "version": "0.4.2-alpha.1",
3
+ "version": "0.4.2-alpha.2",
4
4
  "description": "Session Replay package for Guance React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",