Deps: bump Kotlin plugin; introduce KSP; apply in :app subproject
This commit is contained in:
parent
5868eaa66b
commit
4046cd16fd
|
|
@ -1,5 +1,6 @@
|
||||||
plugins {
|
plugins {
|
||||||
alias(libs.plugins.android.application)
|
alias(libs.plugins.android.application)
|
||||||
|
alias(libs.plugins.kotlin.symbol.processing)
|
||||||
alias(libs.plugins.jetbrains.kotlin.android)
|
alias(libs.plugins.jetbrains.kotlin.android)
|
||||||
alias(libs.plugins.jetbrains.kotlin.compose.compiler)
|
alias(libs.plugins.jetbrains.kotlin.compose.compiler)
|
||||||
}
|
}
|
||||||
|
|
@ -51,6 +52,7 @@ dependencies {
|
||||||
// Platform & Bundles
|
// Platform & Bundles
|
||||||
implementation(platform(libs.compose.bom))
|
implementation(platform(libs.compose.bom))
|
||||||
implementation(libs.bundles.androidx)
|
implementation(libs.bundles.androidx)
|
||||||
|
ksp(libs.androidx.room.compiler)
|
||||||
implementation(libs.bundles.compose)
|
implementation(libs.bundles.compose)
|
||||||
implementation(libs.bundles.coroutines)
|
implementation(libs.bundles.coroutines)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||||
plugins {
|
plugins {
|
||||||
alias(libs.plugins.jetbrains.kotlin.android) apply false
|
|
||||||
alias(libs.plugins.jetbrains.kotlin.compose.compiler) apply false
|
|
||||||
alias(libs.plugins.android.application) apply false
|
alias(libs.plugins.android.application) apply false
|
||||||
alias(libs.plugins.android.library) apply false
|
alias(libs.plugins.android.library) apply false
|
||||||
|
alias(libs.plugins.kotlin.symbol.processing) apply false
|
||||||
|
alias(libs.plugins.jetbrains.kotlin.android) apply false
|
||||||
|
alias(libs.plugins.jetbrains.kotlin.compose.compiler) apply false
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
[versions]
|
[versions]
|
||||||
|
|
||||||
# Plugins
|
# Plugins
|
||||||
kotlin = "2.1.10"
|
|
||||||
agp = "8.9.1"
|
agp = "8.9.1"
|
||||||
|
ksp = "2.1.20-2.0.0"
|
||||||
|
kotlin = "2.1.20"
|
||||||
|
|
||||||
# AndroidX
|
# AndroidX
|
||||||
activity = "1.10.1"
|
activity = "1.10.1"
|
||||||
|
|
@ -10,6 +11,10 @@ core-ktx = "1.15.0"
|
||||||
datastore-preferences = "1.0.0"
|
datastore-preferences = "1.0.0"
|
||||||
lifecycle = "2.8.7"
|
lifecycle = "2.8.7"
|
||||||
navigation = "2.8.9"
|
navigation = "2.8.9"
|
||||||
|
room = "2.7.0"
|
||||||
|
|
||||||
|
# Coroutines
|
||||||
|
coroutines = "1.10.2"
|
||||||
|
|
||||||
# Compose
|
# Compose
|
||||||
compose-bom = "2025.03.01"
|
compose-bom = "2025.03.01"
|
||||||
|
|
@ -18,9 +23,6 @@ compose-material-icons = "1.7.8"
|
||||||
compose-material3 = "1.3.2"
|
compose-material3 = "1.3.2"
|
||||||
compose-ui = "1.7.8"
|
compose-ui = "1.7.8"
|
||||||
|
|
||||||
# Coroutines
|
|
||||||
coroutines = "1.10.2"
|
|
||||||
|
|
||||||
# Accompanist
|
# Accompanist
|
||||||
accompanist = "0.36.0"
|
accompanist = "0.36.0"
|
||||||
|
|
||||||
|
|
@ -33,8 +35,9 @@ junit = "4.13.2"
|
||||||
[plugins]
|
[plugins]
|
||||||
android-application = { id = "com.android.application", version.ref = "agp" }
|
android-application = { id = "com.android.application", version.ref = "agp" }
|
||||||
android-library = { id = "com.android.library", version.ref = "agp" }
|
android-library = { id = "com.android.library", version.ref = "agp" }
|
||||||
jetbrains-kotlin-compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
|
kotlin-symbol-processing = { id = "com.google.devtools.ksp", version.ref = "ksp" }
|
||||||
jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
|
jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
|
||||||
|
jetbrains-kotlin-compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
|
||||||
|
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
|
|
@ -47,6 +50,12 @@ androidx-datastore-preferences = { group = "androidx.datastore", name = "datasto
|
||||||
androidx-lifecycle = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycle"}
|
androidx-lifecycle = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycle"}
|
||||||
androidx-lifecycle-viewmodel-compose = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-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 = "navigation"}
|
androidx-navigation-compose = { group = "androidx.navigation", name = "navigation-compose", version.ref = "navigation"}
|
||||||
|
androidx-room-compiler = { group = "androidx.room", name = "room-compiler", version.ref = "room" }
|
||||||
|
androidx-room-ktx = { group = "androidx.room", name = "room-ktx", version.ref = "room" }
|
||||||
|
|
||||||
|
# Coroutines
|
||||||
|
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" }
|
||||||
|
|
||||||
# Compose
|
# Compose
|
||||||
compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "compose-bom" }
|
compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "compose-bom" }
|
||||||
|
|
@ -62,10 +71,6 @@ compose-ui-test-manifest = { group = "androidx.compose.ui", name = "ui-test-mani
|
||||||
compose-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling", version.ref = "compose-ui" }
|
compose-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling", version.ref = "compose-ui" }
|
||||||
compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview", version.ref = "compose-ui" }
|
compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview", version.ref = "compose-ui" }
|
||||||
|
|
||||||
# Coroutines
|
|
||||||
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" }
|
|
||||||
|
|
||||||
# Accompanist
|
# Accompanist
|
||||||
accompanist-systemuicontroller = { group = "com.google.accompanist", name = "accompanist-systemuicontroller", version.ref = "accompanist" }
|
accompanist-systemuicontroller = { group = "com.google.accompanist", name = "accompanist-systemuicontroller", version.ref = "accompanist" }
|
||||||
|
|
||||||
|
|
@ -81,7 +86,8 @@ androidx = [
|
||||||
"androidx-datastore-preferences",
|
"androidx-datastore-preferences",
|
||||||
"androidx-lifecycle",
|
"androidx-lifecycle",
|
||||||
"androidx-lifecycle-viewmodel-compose",
|
"androidx-lifecycle-viewmodel-compose",
|
||||||
"androidx-navigation-compose"
|
"androidx-navigation-compose",
|
||||||
|
"androidx-room-ktx",
|
||||||
]
|
]
|
||||||
compose = [
|
compose = [
|
||||||
"compose-foundation",
|
"compose-foundation",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue