Skip to content

1311: Dispatcher Tests for RenderWorkflowIn on Android #1350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ dependencies {

compileOnly(gradleApi())

implementation(libs.burst.plugin)
implementation(libs.android.gradle.plugin)
implementation(libs.kgx)
implementation(libs.dokka.gradle.plugin)
Expand Down
4 changes: 4 additions & 0 deletions dependencies/classpath.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
androidx.databinding:databinding-common:8.8.0
androidx.databinding:databinding-compiler-common:8.8.0
app.cash.burst:burst-gradle-plugin:2.1.0
app.cash.burst:burst-jvm:2.1.0
app.cash.burst:burst-kotlin-plugin:2.1.0
app.cash.burst:burst:2.1.0
com.android.databinding:baseLibrary:8.8.0
com.android.tools.analytics-library:crash:31.8.0
com.android.tools.analytics-library:protos:31.8.0
Expand Down
7 changes: 7 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ androidx-tracing = "1.2.0"
androidx-transition = "1.5.1"
androidx-viewbinding = "8.1.2"

burst = "2.1.0"

detekt = "1.19.0"
dokka = "2.0.0"
dependencyGuard = "0.5.0"
Expand Down Expand Up @@ -83,6 +85,7 @@ squareup-moshi = "1.15.0"
squareup-moshi-kotlin = "1.15.2"
squareup-okhttp = "4.9.1"
squareup-okio = "3.3.0"
squareup-papa = "0.30"
squareup-radiography = "2.4.1"
squareup-retrofit = "2.9.0"
squareup-seismic = "1.0.3"
Expand Down Expand Up @@ -184,6 +187,8 @@ androidx-transition = { module = "androidx.transition:transition", version.ref =

androidx-viewbinding = { module = "androidx.databinding:viewbinding", version.ref = "androidx-viewbinding" }

burst-plugin = { module = "app.cash.burst:burst-gradle-plugin", version.ref = "burst" }

dokka-gradle-plugin = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version.ref = "dokka" }

dropbox-dependencyGuard = { module = "com.dropbox.dependency-guard:dependency-guard", version.ref = "dependencyGuard" }
Expand Down Expand Up @@ -258,6 +263,8 @@ squareup-moshi-kotlin = { module = "com.squareup.moshi:moshi-kotlin", version.re

squareup-okio = { module = "com.squareup.okio:okio", version.ref = "squareup-okio" }

squareup-papa = { module = "com.squareup.papa:papa", version.ref = "squareup-papa"}

squareup-radiography = { module = "com.squareup.radiography:radiography", version.ref = "squareup-radiography" }

squareup-seismic = { module = "com.squareup:seismic", version.ref = "squareup-seismic" }
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ include(
":workflow-config:config-jvm",
":workflow-core",
":workflow-runtime",
":workflow-runtime-android",
":workflow-rx2",
":workflow-testing",
":workflow-tracing",
Expand Down
4 changes: 4 additions & 0 deletions workflow-runtime-android/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Module Workflow Runtime Android

This module is an Android library that is used to test the Workflow Runtime with Android specific
coroutine dispatchers. These are headless android-tests that run on device without UI.
Empty file.
27 changes: 27 additions & 0 deletions workflow-runtime-android/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
plugins {
id("com.android.library")
id("kotlin-android")
id("android-defaults")
id("android-ui-tests")
id("app.cash.burst")
}

android {
namespace = "com.squareup.workflow1.android"
testNamespace = "$namespace.test"
}

dependencies {
api(project(":workflow-runtime"))
implementation(project(":workflow-core"))

androidTestImplementation(libs.androidx.test.core)
androidTestImplementation(libs.androidx.test.truth)
androidTestImplementation(libs.kotlin.test.core)
androidTestImplementation(libs.kotlin.test.jdk)
androidTestImplementation(libs.kotlinx.coroutines.android)
androidTestImplementation(libs.kotlinx.coroutines.core)
androidTestImplementation(libs.kotlinx.coroutines.test)
androidTestImplementation(libs.squareup.papa)
androidTestImplementation(libs.turbine)
}
3 changes: 3 additions & 0 deletions workflow-runtime-android/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
POM_ARTIFACT_ID=workflow-runtime-android
POM_NAME=Workflow Runtime Android
POM_PACKAGING=aar
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application>
<activity android:name="androidx.activity.ComponentActivity"/>
</application>
</manifest>
Loading
Loading