Skip to content

Commit 75767ea

Browse files
committed
Switch to Compose BOM
1 parent 819584e commit 75767ea

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

gradle/libs.versions.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
agp = "8.10.0" # keep in sync with android-tools
33
android-tools = "31.10.0" # = 23.0.0 + agp
44
compilerTesting = "0.7.1"
5-
compose = "1.5.14"
65
kotlin = "2.1.20"
76
kotlinPoet = "1.13.1"
87
ksp = "2.1.20-1.0.32"
@@ -33,9 +32,11 @@ moshi-codegen = { module = "com.squareup.moshi:moshi-kotlin-codegen", version.re
3332
truth = { module = "com.google.truth:truth", version = "1.4.4" }
3433

3534
# Used by the sample app
35+
compose-bom = { module = "androidx.compose:compose-bom", version = "2025.05.01" }
36+
compose-material = { module = "androidx.compose.material:material" }
37+
compose-runtime = { module = "androidx.compose.runtime:runtime" }
38+
3639
compose-activity = { module = "androidx.activity:activity-compose", version = "1.7.1" }
37-
compose-material = { module = "androidx.compose.material:material", version = "1.4.2" }
38-
compose-runtime = { module = "androidx.compose.runtime:runtime", version = "1.4.2" }
3940

4041
# AGP things
4142
google-guava = "com.google.guava:guava:31.1-jre"

sample/app/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ android {
3939
}
4040

4141
dependencies {
42-
implementation libs.compose.activity
42+
implementation platform(libs.compose.bom)
4343
implementation libs.compose.material
44+
implementation libs.compose.activity
4445
implementation libs.featureDelivery
4546
}

sample/bigboxfeature/build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,10 @@ android {
1818
buildFeatures {
1919
compose true
2020
}
21-
22-
composeOptions {
23-
kotlinCompilerExtensionVersion libs.versions.compose.get()
24-
}
2521
}
2622

2723
dependencies {
24+
implementation platform(libs.compose.bom)
2825
implementation projects.app
2926
implementation projects.bigboxfeature.api
3027
implementation libs.compose.material

sample/extrabigboxfeature/build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,10 @@ android {
1818
buildFeatures {
1919
compose true
2020
}
21-
22-
composeOptions {
23-
kotlinCompilerExtensionVersion libs.versions.compose.get()
24-
}
2521
}
2622

2723
dependencies {
24+
implementation platform(libs.compose.bom)
2825
implementation projects.app
2926
implementation libs.compose.material
3027
}

0 commit comments

Comments
 (0)