Files
ring-health-app/gradle/libs.versions.toml
T

48 lines
2.9 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[versions]
agp = "8.13.1"
kotlin = "2.2.20"
# !!请勿把下面四个版本改回 1.19.0 / 2.11.0 / 2.10.1 / 2026.09.00 !!
#
# 那组版本要求 compileSdk 37 + AGP 9.1.0,与本计划钉死的工具链
# (compileSdk 36 + AGP 8.13.1,见 Ruling R5)互斥,会导致
# `:app:checkDebugAarMetadata` 直接失败并抛出 32 条 AAR 元数据冲突。
#
# 裁定依据:Ruling R5(工具链以本机已装版本为准,权威)+
# Ruling R6(批准将越界依赖下调至工具链可接受的最新版本)。
# 验证方法:读取各依赖 AAR 自带的
# META-INF/com/android/build/gradle/aar-metadata.properties,
# 取其中 minCompileSdk<=36 且 minAndroidGradlePluginVersion<=8.13.1
# 的最新版本。实测:core-ktx 1.18.0 / lifecycle 2.10.0 /
# navigation-compose 2.9.8 / compose-bom 2026.06.01(compose 1.11.4)。
# 若将来升级 AGP 与 compileSdk 到 37+,方可一并回改这四行。
coreKtx = "1.18.0"
activityCompose = "1.13.0"
lifecycle = "2.10.0"
navigationCompose = "2.9.8"
composeBom = "2026.06.01"
iconsExtended = "1.7.8"
coroutines = "1.10.2"
junit = "4.13.2"
[libraries]
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose" }
androidx-lifecycle-runtime-compose = { group = "androidx.lifecycle", name = "lifecycle-runtime-compose", version.ref = "lifecycle" }
androidx-lifecycle-viewmodel-compose = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-compose", version.ref = "lifecycle" }
androidx-lifecycle-viewmodel-ktx = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-ktx", version.ref = "lifecycle" }
androidx-navigation-compose = { group = "androidx.navigation", name = "navigation-compose", version.ref = "navigationCompose" }
androidx-compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeBom" }
androidx-ui = { group = "androidx.compose.ui", name = "ui" }
androidx-ui-graphics = { group = "androidx.compose.ui", name = "ui-graphics" }
androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" }
androidx-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
androidx-material3 = { group = "androidx.compose.material3", name = "material3" }
androidx-icons-extended = { group = "androidx.compose.material", name = "material-icons-extended", version.ref = "iconsExtended" }
kotlinx-coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-test", version.ref = "coroutines" }
junit = { group = "junit", name = "junit", version.ref = "junit" }
[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }