From a7b307f636988d5be05ac0ae2abc74d1e70b1df6 Mon Sep 17 00:00:00 2001 From: koalasat Date: Wed, 23 Oct 2024 18:08:22 +0200 Subject: [PATCH] Build fix --- app/build.gradle.kts | 3 +++ gradle/libs.versions.toml | 9 ++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index bce350f..64867d6 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -124,6 +124,9 @@ dependencies { implementation(libs.androidx.lifecycle.livedata.ktx) implementation(libs.androidx.lifecycle.viewmodel.ktx) implementation(libs.androidx.navigation.fragment.ktx) + implementation(libs.lifecycle.runtime.compose) + implementation(libs.lifecycle.viewmodel.compose) + implementation(libs.lifecycle.runtime.ktx) implementation(libs.androidx.navigation.ui.ktx) implementation(libs.okhttp) implementation(libs.security.crypto.ktx) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 0939b49..723667a 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -9,9 +9,9 @@ espressoCore = "3.6.1" appcompat = "1.7.0" material = "1.12.0" constraintlayout = "2.1.4" +lifecycle_version = "2.8.6" lifecycleLivedataKtx = "2.8.6" lifecycleViewmodelKtx = "2.8.6" -materialVersion = "1.7.4" navigationFragmentKtx = "2.8.3" navigationUiKtx = "2.8.3" okhttp = "5.0.0-alpha.14" @@ -21,19 +21,18 @@ securityCryptoKtx = "1.1.0-alpha06" roomKtx = "2.6.1" ksp = "2.0.20-1.0.24" ktlint = "12.1.1" -ui = "1.7.4" [libraries] androidx-compiler = { module = "androidx.compose.compiler:compiler", version.ref = "compiler" } androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" } -androidx-material = { module = "androidx.compose.material:material", version.ref = "materialVersion" } -androidx-ui = { module = "androidx.compose.ui:ui", version.ref = "ui" } -androidx-ui-tooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "ui" } 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" } +lifecycle-runtime-compose = { module = "androidx.lifecycle:lifecycle-runtime-compose", version.ref = "lifecycle_version" } +lifecycle-runtime-ktx = { module = "androidx.lifecycle:lifecycle-runtime-ktx", version.ref = "lifecycle_version" } +lifecycle-viewmodel-compose = { module = "androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "lifecycle_version" } jna = { module = "net.java.dev.jna:jna", version.ref = "jna" } androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" } androidx-lifecycle-livedata-ktx = { group = "androidx.lifecycle", name = "lifecycle-livedata-ktx", version.ref = "lifecycleLivedataKtx" }