@datadog/mobile-react-native-session-replay 2.5.0-alpha.0 → 2.6.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.
|
@@ -19,7 +19,7 @@ Pod::Spec.new do |s|
|
|
|
19
19
|
s.dependency "React-Core"
|
|
20
20
|
|
|
21
21
|
# /!\ Remember to keep the version in sync with DatadogSDKReactNative.podspec
|
|
22
|
-
s.dependency 'DatadogSessionReplay', '~> 2.
|
|
22
|
+
s.dependency 'DatadogSessionReplay', '~> 2.22.0'
|
|
23
23
|
s.dependency 'DatadogSDKReactNative'
|
|
24
24
|
|
|
25
25
|
s.test_spec 'Tests' do |test_spec|
|
package/android/build.gradle
CHANGED
|
@@ -197,8 +197,8 @@ dependencies {
|
|
|
197
197
|
api "com.facebook.react:react-android:$reactNativeVersion"
|
|
198
198
|
}
|
|
199
199
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
200
|
-
implementation "com.datadoghq:dd-sdk-android-session-replay:2.
|
|
201
|
-
implementation "com.datadoghq:dd-sdk-android-internal:2.
|
|
200
|
+
implementation "com.datadoghq:dd-sdk-android-session-replay:2.17.0"
|
|
201
|
+
implementation "com.datadoghq:dd-sdk-android-internal:2.17.0"
|
|
202
202
|
implementation project(path: ':datadog_mobile-react-native')
|
|
203
203
|
|
|
204
204
|
testImplementation "org.junit.platform:junit-platform-launcher:1.6.2"
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import android.graphics.drawable.Drawable
|
|
7
7
|
import android.graphics.drawable.InsetDrawable
|
|
8
8
|
import android.graphics.drawable.LayerDrawable
|
|
9
|
-
import com.datadog.
|
|
9
|
+
import com.datadog.android.internal.utils.densityNormalized
|
|
10
10
|
import com.datadog.android.sessionreplay.model.MobileSegment
|
|
11
11
|
import com.datadog.reactnative.sessionreplay.extensions.getRadius
|
|
12
12
|
import com.datadog.reactnative.sessionreplay.utils.DrawableUtils
|
|
@@ -86,7 +86,7 @@ internal class ReactViewBackgroundDrawableUtils : DrawableUtils() {
|
|
|
86
86
|
pixelDensity: Float
|
|
87
87
|
): MobileSegment.ShapeBorder {
|
|
88
88
|
val borderWidth =
|
|
89
|
-
backgroundDrawable.fullBorderWidth.toLong().
|
|
89
|
+
backgroundDrawable.fullBorderWidth.toLong().densityNormalized(pixelDensity)
|
|
90
90
|
val borderColor = formatAsRgba(backgroundDrawable.getBorderColor(Spacing.ALL))
|
|
91
91
|
|
|
92
92
|
return MobileSegment.ShapeBorder(
|
|
@@ -139,11 +139,11 @@ internal struct RCTTextViewWireframesBuilder: SessionReplayNodeWireframesBuilder
|
|
|
139
139
|
builder.createTextWireframe(
|
|
140
140
|
id: wireframeID,
|
|
141
141
|
frame: relativeIntersectedRect,
|
|
142
|
+
clip: attributes.clip,
|
|
142
143
|
text: textObfuscator.mask(text: text ?? ""),
|
|
143
144
|
textFrame: textFrame,
|
|
144
145
|
// Text alignment is top for all RCTTextView components.
|
|
145
146
|
textAlignment: .init(systemTextAlignment: textAlignment, vertical: .top),
|
|
146
|
-
clip: clip,
|
|
147
147
|
textColor: textColor ?? DEFAULT_COLOR,
|
|
148
148
|
fontOverride: SessionReplayWireframesBuilder.FontOverride(size: fontSize.isNaN ? DEFAULT_FONT_SIZE : fontSize),
|
|
149
149
|
borderColor: attributes.layerBorderColor,
|
package/package.json
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
],
|
|
11
|
-
"author": "Datadog (https://github.com/DataDog)",
|
|
12
|
-
"homepage": "https://github.com/DataDog/dd-sdk-reactnative#readme",
|
|
13
|
-
"repository": "https://github.com/DataDog/dd-sdk-reactnative",
|
|
14
|
-
"bugs": {
|
|
15
|
-
"url": "https://github.com/DataDog/dd-sdk-reactnative/issues"
|
|
16
|
-
},
|
|
17
|
-
"license": "Apache-2.0",
|
|
18
|
-
"main": "lib/commonjs/index",
|
|
19
|
-
"files": [
|
|
20
|
-
"src/**",
|
|
21
|
-
"lib/**",
|
|
22
|
-
"android/build.gradle",
|
|
23
|
-
"android/detekt.yml",
|
|
24
|
-
"android/gradle.properties",
|
|
25
|
-
"android/consumer-proguard-rules.pro",
|
|
26
|
-
"android/src/**",
|
|
27
|
-
"ios/Sources/**",
|
|
28
|
-
"ios/DatadogSDKReactNativeSessionReplay.xcodeproj/project.xcworkspace/xcsharedata",
|
|
29
|
-
"ios/DatadogSDKReactNativeSessionReplay.xcodeproj/project.xcworkspace/*.xcworkspacedata",
|
|
30
|
-
"ios/DatadogSDKReactNativeSessionReplay.xcodeproj/*.pbxproj",
|
|
31
|
-
"DatadogSDKReactNativeSessionReplay.podspec"
|
|
32
|
-
],
|
|
33
|
-
"types": "lib/typescript/index.d.ts",
|
|
34
|
-
"react-native": "src/index",
|
|
35
|
-
"source": "src",
|
|
36
|
-
"module": "lib/module/index",
|
|
37
|
-
"publishConfig": {
|
|
38
|
-
"access": "restricted"
|
|
39
|
-
},
|
|
40
|
-
"scripts": {
|
|
41
|
-
"test": "jest",
|
|
42
|
-
"lint": "eslint .",
|
|
43
|
-
"prepare": "rm -rf lib && yarn bob build"
|
|
44
|
-
},
|
|
45
|
-
"peerDependencies": {
|
|
46
|
-
"react": ">=16.13.1",
|
|
47
|
-
"react-native": ">=0.63.4 <1.0"
|
|
48
|
-
},
|
|
49
|
-
"devDependencies": {
|
|
50
|
-
"@testing-library/react-native": "7.0.2",
|
|
51
|
-
"react-native-builder-bob": "0.26.0"
|
|
52
|
-
},
|
|
53
|
-
"jest": {
|
|
54
|
-
"preset": "react-native",
|
|
55
|
-
"moduleNameMapper": {
|
|
56
|
-
"@datadog/mobile-react-native": "<rootDir>../core/src"
|
|
57
|
-
},
|
|
58
|
-
"modulePathIgnorePatterns": [
|
|
59
|
-
"<rootDir>/lib/"
|
|
2
|
+
"name": "@datadog/mobile-react-native-session-replay",
|
|
3
|
+
"version": "2.6.0",
|
|
4
|
+
"description": "A client-side React Native module to enable session replay with Datadog",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"datadog",
|
|
7
|
+
"react-native",
|
|
8
|
+
"ios",
|
|
9
|
+
"android"
|
|
60
10
|
],
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
11
|
+
"author": "Datadog (https://github.com/DataDog)",
|
|
12
|
+
"homepage": "https://github.com/DataDog/dd-sdk-reactnative#readme",
|
|
13
|
+
"repository": "https://github.com/DataDog/dd-sdk-reactnative",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/DataDog/dd-sdk-reactnative/issues"
|
|
16
|
+
},
|
|
17
|
+
"license": "Apache-2.0",
|
|
18
|
+
"main": "lib/commonjs/index",
|
|
19
|
+
"files": [
|
|
20
|
+
"src/**",
|
|
21
|
+
"lib/**",
|
|
22
|
+
"android/build.gradle",
|
|
23
|
+
"android/detekt.yml",
|
|
24
|
+
"android/gradle.properties",
|
|
25
|
+
"android/consumer-proguard-rules.pro",
|
|
26
|
+
"android/src/**",
|
|
27
|
+
"ios/Sources/**",
|
|
28
|
+
"ios/DatadogSDKReactNativeSessionReplay.xcodeproj/project.xcworkspace/xcsharedata",
|
|
29
|
+
"ios/DatadogSDKReactNativeSessionReplay.xcodeproj/project.xcworkspace/*.xcworkspacedata",
|
|
30
|
+
"ios/DatadogSDKReactNativeSessionReplay.xcodeproj/*.pbxproj",
|
|
31
|
+
"DatadogSDKReactNativeSessionReplay.podspec"
|
|
64
32
|
],
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
]
|
|
68
|
-
},
|
|
69
|
-
"react-native-builder-bob": {
|
|
33
|
+
"types": "lib/typescript/index.d.ts",
|
|
34
|
+
"react-native": "src/index",
|
|
70
35
|
"source": "src",
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
36
|
+
"module": "lib/module/index",
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"test": "jest",
|
|
42
|
+
"lint": "eslint .",
|
|
43
|
+
"prepare": "rm -rf lib && yarn bob build"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"react": ">=16.13.1",
|
|
47
|
+
"react-native": ">=0.63.4 <1.0"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@testing-library/react-native": "7.0.2",
|
|
51
|
+
"react-native-builder-bob": "0.26.0"
|
|
52
|
+
},
|
|
53
|
+
"jest": {
|
|
54
|
+
"preset": "react-native",
|
|
55
|
+
"moduleNameMapper": {
|
|
56
|
+
"@datadog/mobile-react-native": "<rootDir>../core/src"
|
|
57
|
+
},
|
|
58
|
+
"modulePathIgnorePatterns": [
|
|
59
|
+
"<rootDir>/lib/"
|
|
60
|
+
],
|
|
61
|
+
"setupFiles": [
|
|
62
|
+
"./../../node_modules/react-native-gesture-handler/jestSetup.js",
|
|
63
|
+
"./../../jest.setup.js"
|
|
64
|
+
],
|
|
65
|
+
"transformIgnorePatterns": [
|
|
66
|
+
"jest-runner"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"react-native-builder-bob": {
|
|
70
|
+
"source": "src",
|
|
71
|
+
"output": "lib",
|
|
72
|
+
"targets": [
|
|
73
|
+
"commonjs",
|
|
74
|
+
"module",
|
|
75
|
+
[
|
|
76
|
+
"typescript",
|
|
77
|
+
{
|
|
78
|
+
"tsc": "./../../node_modules/.bin/tsc"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"codegenConfig": {
|
|
84
|
+
"name": "DdSDKReactNativeSessionReplay",
|
|
85
|
+
"type": "modules",
|
|
86
|
+
"jsSrcsDir": "./src/specs",
|
|
87
|
+
"android": {
|
|
88
|
+
"javaPackageName": "com.datadog.reactnative.sessionreplay"
|
|
79
89
|
}
|
|
80
|
-
]
|
|
81
|
-
]
|
|
82
|
-
},
|
|
83
|
-
"codegenConfig": {
|
|
84
|
-
"name": "DdSDKReactNativeSessionReplay",
|
|
85
|
-
"type": "modules",
|
|
86
|
-
"jsSrcsDir": "./src/specs",
|
|
87
|
-
"android": {
|
|
88
|
-
"javaPackageName": "com.datadog.reactnative.sessionreplay"
|
|
89
90
|
}
|
|
90
|
-
|
|
91
|
-
}
|
|
91
|
+
}
|