Skip to content

Commit 7f98d60

Browse files
1311:Use Compose's AndroidUiDispatcher.Main to conflate actions in runtime
If it is not being used on Android, use it for the runtime whenever on Android (requiring Compose)
1 parent 95bf5b8 commit 7f98d60

File tree

9 files changed

+215
-164
lines changed

9 files changed

+215
-164
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ androidx-compose-runtime = { module = "androidx.compose.runtime:runtime" }
138138
androidx-compose-runtime-saveable = { module = "androidx.compose.runtime:runtime-saveable" }
139139

140140
androidx-compose-ui = { module = "androidx.compose.ui:ui" }
141+
androidx-compose-ui-android = { module = "androidx.compose.ui:ui-android" }
141142
androidx-compose-ui-geometry = { module = "androidx.compose.ui:ui-geometry" }
142143
androidx-compose-ui-graphics = { module = "androidx.compose.ui:ui-graphics" }
143144
androidx-compose-ui-test-junit4 = { module = "androidx.compose.ui:ui-test-junit4" }

workflow-runtime-android/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ android {
1212
}
1313

1414
dependencies {
15+
val composeBom = platform(libs.androidx.compose.bom)
16+
1517
api(project(":workflow-runtime"))
18+
api(libs.androidx.compose.ui.android)
1619
api(libs.androidx.lifecycle.viewmodel.savedstate)
1720

21+
implementation(composeBom)
1822
implementation(project(":workflow-core"))
1923

2024
androidTestImplementation(libs.androidx.activity.ktx)

0 commit comments

Comments
 (0)