Skip to content

Commit

Permalink
RUM-7332: Add instrumented test for Compose Session Replay
Browse files Browse the repository at this point in the history
  • Loading branch information
ambushwork committed Dec 31, 2024
1 parent f61a42c commit 2d982f2
Show file tree
Hide file tree
Showing 19 changed files with 933 additions and 0 deletions.
8 changes: 8 additions & 0 deletions instrumented/integration/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ android {

buildFeatures {
buildConfig = true
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidXComposeRuntime.get()
}

multiDexEnabled = true
Expand Down Expand Up @@ -91,6 +96,7 @@ dependencies {
coreLibraryDesugaring(libs.androidDesugaringSdk)
}
implementation(project(":features:dd-sdk-android-session-replay"))
implementation(project(":features:dd-sdk-android-session-replay-compose"))
implementation(project(":features:dd-sdk-android-logs"))
implementation(project(":features:dd-sdk-android-trace"))
implementation(project(":features:dd-sdk-android-rum"))
Expand All @@ -101,6 +107,8 @@ dependencies {
implementation(libs.bundles.androidXSupportBase)
implementation(libs.androidXMultidex)
implementation(libs.elmyr)
implementation(platform(libs.androidXComposeBom))
implementation(libs.bundles.androidXCompose)

androidTestImplementation(project(":tools:unit")) {
attributes {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[{
"type": 4,
"data": {
"width": 320,
"height": 640
}
}, {
"type": 6,
"data": {
"has_focus": true
}
}, {
"type": 10,
"data": {
"wireframes": [
{
"type": "shape"
},
{
"type": "shape"
},
{
"type": "text",
"text": "Text Button",
"textStyle": {
"family": "Roboto, sans-serif",
"size": 14,
"color": "#ffffffff"
},
"textPosition": {
"alignment": {
"horizontal": "left"
}
}
},
{
"type": "shape"
}
]
}
}]
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
[{
"type": 4,
"data": {
"width": 320,
"height": 640
}
}, {
"type": 6,
"data": {
"has_focus": true
}
}, {
"type": 10,
"data": {
"wireframes": [
{
"type": "shape"
},
{
"type": "image",
"isEmpty": false
},
{
"type": "text",
"text": "Image",
"textStyle": {
"family": "Roboto, sans-serif",
"size": 20,
"color": "#000000ff"
},
"textPosition": {
"alignment": {
"horizontal": "left"
}
}
},
{
"type": "shape"
},
{
"type": "shape"
},
{
"type": "text",
"text": "Icon",
"textStyle": {
"family": "Roboto, sans-serif",
"size": 20,
"color": "#000000ff"
},
"textPosition": {
"alignment": {
"horizontal": "left"
}
}
},
{
"clip": {
"top": 0,
"bottom": 16,
"left": 0,
"right": 0
},
"type": "shape"
},
{
"type": "text",
"text": "Icon Button",
"textStyle": {
"family": "Roboto, sans-serif",
"size": 20,
"color": "#000000ff"
},
"textPosition": {
"alignment": {
"horizontal": "left"
}
}
}
]
}
}]
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
[{
"type": 4,
"data": {
"width": 320,
"height": 640
}
}, {
"type": 6,
"data": {
"has_focus": true
}
}, {
"type": 10,
"data": {
"wireframes": [
{
"type": "shape"
},
{
"type": "placeholder",
"label": "Image"
},
{
"type": "text",
"text": "xxxxx",
"textStyle": {
"family": "Roboto, sans-serif",
"size": 20,
"color": "#000000ff"
},
"textPosition": {
"alignment": {
"horizontal": "left"
}
}
},
{
"type": "shape"
},
{
"type": "shape"
},
{
"type": "placeholder",
"label": "Image"
},
{
"type": "text",
"text": "xxxx",
"textStyle": {
"family": "Roboto, sans-serif",
"size": 20,
"color": "#000000ff"
},
"textPosition": {
"alignment": {
"horizontal": "left"
}
}
},
{
"clip": {
"top": 0,
"bottom": 16,
"left": 0,
"right": 0
},
"type": "shape"
},
{
"type": "placeholder",
"label": "Image"
},
{
"type": "text",
"text": "xxxx xxxxxx",
"textStyle": {
"family": "Roboto, sans-serif",
"size": 20,
"color": "#000000ff"
},
"textPosition": {
"alignment": {
"horizontal": "left"
}
}
}
]
}
}]
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
[{
"type": 4,
"data": {
"width": 320,
"height": 640
}
}, {
"type": 6,
"data": {
"has_focus": true
}
}, {
"type": 10,
"data": {
"wireframes": [
{
"type": "shape"
},
{
"border": {
"color": "#03dac6ff",
"width": 2
},
"type": "image",
"isEmpty": false
},
{
"border": {
"color": "#00000099",
"width": 2
},
"type": "image",
"isEmpty": false
},
{
"border": {
"color": "#000000FF",
"width": 1
},
"type": "shape"
},
{
"type": "shape"
},
{
"border": {
"color": "#000000FF",
"width": 1
},
"type": "shape"
}
]
}
}]
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[{
"type": 4,
"data": {
"width": 320,
"height": 640
}
}, {
"type": 6,
"data": {
"has_focus": true
}
}, {
"type": 10,
"data": {
"wireframes": [
{
"type": "shape"
},
{
"border": {
"color": "#000000FF",
"width": 2
},
"type": "shape"
},
{
"border": {
"color": "#000000FF",
"width": 2
},
"type": "shape"
},
{
"border": {
"color": "#000000FF",
"width": 1
},
"type": "shape"
},
{
"type": "shape"
},
{
"border": {
"color": "#000000FF",
"width": 1
},
"type": "shape"
}
]
}
}]
Loading

0 comments on commit 2d982f2

Please sign in to comment.