From 581d4d6d3f47b35ef0bb650ea818c9baa9103032 Mon Sep 17 00:00:00 2001 From: Paul Klauser Date: Tue, 1 Oct 2024 23:14:49 -0400 Subject: [PATCH] Update Kotlin and Room to be able to build on AS Ladybug Ladybug bundles JDK 21, which requires a Kotlin version bump, which in-turn requires a Room bump. No functional changes. --- app/build.gradle | 6 +++--- gradle/libs.versions.toml | 8 ++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index e7193747..0b862559 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -81,9 +81,9 @@ dependencies { implementation(libs.koin.android) - implementation "androidx.room:room-runtime:2.5.2" - kapt "androidx.room:room-compiler:2.5.2" - implementation "androidx.room:room-ktx:2.5.2" + implementation(libs.room.runtime) + kapt(libs.room.compiler) + implementation(libs.room.ktx) implementation 'androidx.security:security-crypto:1.0.0-beta01' diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 68139c9b..adfb3c48 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,19 +1,23 @@ [versions] turbine = "1.1.0" -kotlin = "1.8.10" +kotlin = "2.0.20" agp = "8.4.1" safe-args = "2.6.0" google-services = "4.3.15" crashlytics = "2.8.1" androidx-test = "1.5.0" koin = "3.5.6" +room = "2.6.1" [libraries] turbine = { group = "app.cash.turbine", name = "turbine", version.ref = "turbine" } android-gradlePlugin = { group = "com.android.tools.build", name = "gradle", version.ref = "agp" } kotlin-gradlePlugin = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin", version.ref = "kotlin" } -androidx-test-core = { group = "androidx.test", name = "core", version.ref = "androidx-test"} +androidx-test-core = { group = "androidx.test", name = "core", version.ref = "androidx-test" } koin-android = { group = "io.insert-koin", name = "koin-android", version.ref = "koin" } +room-runtime = { group = "androidx.room", name = "room-runtime", version.ref = "room" } +room-compiler = { group = "androidx.room", name = "room-compiler", version.ref = "room" } +room-ktx = { group = "androidx.room", name = "room-ktx", version.ref = "room" } [plugins] androidApplication = { id = "com.android.application", version.ref = "agp" }