Skip to content

Commit e43f7d8

Browse files
Merge pull request #1470 from square/sedwards/tutorial-build
Fix missing Compose BOM version in published POM
2 parents e15b78a + 28c1f91 commit e43f7d8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

samples/tutorial/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ subprojects {
6060
mavenCentral()
6161
}
6262

63+
// Workaround: workflow-runtime-android:1.25.0 declares androidx.compose.ui:ui-android as an
64+
// api dependency without a version (the Compose BOM was published as implementation scope).
65+
// Adding the BOM here allows consumers to resolve the missing version.
66+
plugins.withId("com.android.application") {
67+
dependencies {
68+
implementation platform('androidx.compose:compose-bom:2025.03.01')
69+
}
70+
}
71+
6372
tasks.withType(KotlinCompile).configureEach {
6473
kotlinOptions {
6574
freeCompilerArgs += '-opt-in=kotlin.RequiresOptIn'

workflow-runtime/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ kotlin {
7575
api(libs.androidx.compose.ui.android)
7676
api(libs.androidx.lifecycle.viewmodel.savedstate)
7777

78-
implementation(composeBom)
78+
api(composeBom)
7979
}
8080
}
8181

0 commit comments

Comments
 (0)