Skip to content

Commit 8a7b7eb

Browse files
committed
feat(build): 优化Compose依赖与构建配置
- 更新`compose-bom`库为Beta版本,确保最新特性与修复支持 - 移除`android.suppressUnsupportedCompileSdk`配置,清理遗留设置 - 简化`navigation3`依赖的使用,去除冗余排除规则
1 parent f662603 commit 8a7b7eb

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ kotlin.code.style=official
2222
# thereby reducing the size of the R class for that library
2323
android.nonTransitiveRClass=true
2424
org.gradle.configuration-cache=true
25-
android.suppressUnsupportedCompileSdk=35
2625
applyFirebasePlugins=true

gradle/compose.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ viewmodel-navigation3 = "2.10.0-beta01"
77
material3 = "1.5.0-alpha07"
88

99
[libraries]
10-
bom = { group = "androidx.compose", name = "compose-bom", version.ref = "compose-bom" }
10+
bom = { group = "androidx.compose", name = "compose-bom-beta", version.ref = "compose-bom" }
1111
foundation = { module = "androidx.compose.foundation:foundation" }
1212
animation = { module = "androidx.compose.animation:animation" }
1313
ui = { module = "androidx.compose.ui:ui" }

lib_common/build.gradle.kts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ dependencies {
3737
api(androidx.activity.compose)
3838
api(compose.bundles.accompanist)
3939
api(libs.compose.webview.multiplatform)
40-
api(compose.bundles.navigation3) {
41-
exclude(group = "androidx.compose.runtime", module = "runtime")
42-
exclude(group = "androidx.compose.runtime", module = "runtime-saveable")
43-
}
40+
api(compose.bundles.navigation3)
4441
// Navigation
4542
api(androidx.navigation.compose)
4643
// Koin

0 commit comments

Comments
 (0)