65 lines
3.6 KiB
TOML
65 lines
3.6 KiB
TOML
[versions]
|
||
agp = "9.3.0"
|
||
# AGP 9.3 内置 Kotlin(2.2.x),子插件需与内置版本对齐
|
||
kotlin = "2.2.10"
|
||
coreKtx = "1.13.1"
|
||
junit = "4.13.2"
|
||
junitVersion = "1.2.1"
|
||
espressoCore = "3.6.1"
|
||
appcompat = "1.7.0"
|
||
material = "1.12.0"
|
||
constraintlayout = "2.1.4"
|
||
activityKtx = "1.9.3"
|
||
lifecycle = "2.8.7"
|
||
datastore = "1.1.1"
|
||
|
||
# Compose(navigation 2.8.x 需 compose 1.7+,配 BOM 2024.09)
|
||
composeBom = "2024.09.00"
|
||
composeNavigation = "2.8.4"
|
||
|
||
# 网络
|
||
retrofit = "2.11.0"
|
||
okhttp = "4.12.0"
|
||
kotlinxSerialization = "1.7.3"
|
||
coroutines = "1.9.0"
|
||
|
||
[libraries]
|
||
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
|
||
junit = { group = "junit", name = "junit", version.ref = "junit" }
|
||
androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
|
||
androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
|
||
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
|
||
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
|
||
androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" }
|
||
androidx-activity-ktx = { group = "androidx.activity", name = "activity-ktx", version.ref = "activityKtx" }
|
||
|
||
# Compose
|
||
androidx-compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeBom" }
|
||
compose-ui = { group = "androidx.compose.ui", name = "ui" }
|
||
compose-material3 = { group = "androidx.compose.material3", name = "material3" }
|
||
compose-material-icons = { group = "androidx.compose.material", name = "material-icons-extended" }
|
||
compose-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" }
|
||
compose-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
|
||
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityKtx" }
|
||
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-navigation-compose = { group = "androidx.navigation", name = "navigation-compose", version.ref = "composeNavigation" }
|
||
|
||
# 网络
|
||
retrofit = { group = "com.squareup.retrofit2", name = "retrofit", version.ref = "retrofit" }
|
||
retrofit-converter-kotlinx = { group = "com.squareup.retrofit2", name = "converter-kotlinx-serialization", version.ref = "retrofit" }
|
||
okhttp = { group = "com.squareup.okhttp3", name = "okhttp", version.ref = "okhttp" }
|
||
okhttp-logging = { group = "com.squareup.okhttp3", name = "logging-interceptor", version.ref = "okhttp" }
|
||
kotlinx-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "kotlinxSerialization" }
|
||
|
||
# 协程
|
||
kotlinx-coroutines-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version.ref = "coroutines" }
|
||
kotlinx-coroutines-android = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-android", version.ref = "coroutines" }
|
||
|
||
# DataStore
|
||
androidx-datastore-preferences = { group = "androidx.datastore", name = "datastore-preferences", version.ref = "datastore" }
|
||
|
||
[plugins]
|
||
android-application = { id = "com.android.application", version.ref = "agp" }
|
||
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
|
||
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" } |