From 47d3085ae233418542c2f6bcce27586dee0dbb45 Mon Sep 17 00:00:00 2001 From: anastasizzz Date: Sun, 14 Jul 2024 23:56:25 +0300 Subject: [PATCH] #3 updates gradle --- android/app/build.gradle.kts | 8 ++++---- android/gradle/libs.versions.toml | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index f0b0790..74a9008 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -88,10 +88,10 @@ dependencies { implementation(libs.okhttp3.logging.interceptor) implementation (libs.converter.gson.v250) - val nav_version = "2.7.7" - - implementation("androidx.navigation:navigation-compose:$nav_version") - implementation ("com.google.accompanist:accompanist-navigation-animation:0.28.0") + implementation(libs.androidx.navigation.compose) + implementation(libs.accompanist.navigation.animation) + implementation(libs.androidx.datastore.preferences) + implementation(libs.androidx.datastore.preferences.core) } diff --git a/android/gradle/libs.versions.toml b/android/gradle/libs.versions.toml index fb2acd4..145854b 100644 --- a/android/gradle/libs.versions.toml +++ b/android/gradle/libs.versions.toml @@ -1,7 +1,9 @@ [versions] +accompanistNavigationAnimation = "0.28.0" agp = "8.5.0" converterGson = "2.9.0" converterGsonVersion = "2.5.0" +datastorePreferencesCore = "1.1.1" hiltAndroid = "2.49" hiltAndroidCompiler = "2.49" hiltCompiler = "1.2.0" @@ -22,7 +24,10 @@ retrofit = "2.9.0" workRuntimeKtx = "2.9.0" [libraries] +accompanist-navigation-animation = { module = "com.google.accompanist:accompanist-navigation-animation", version.ref = "accompanistNavigationAnimation" } androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" } +androidx-datastore-preferences = { module = "androidx.datastore:datastore-preferences", version.ref = "datastorePreferencesCore" } +androidx-datastore-preferences-core = { module = "androidx.datastore:datastore-preferences-core", version.ref = "datastorePreferencesCore" } androidx-hilt-compiler = { module = "androidx.hilt:hilt-compiler", version.ref = "hiltCompiler" } androidx-hilt-work = { module = "androidx.hilt:hilt-work", version.ref = "hiltCompiler" } androidx-material-icons-extended = { module = "androidx.compose.material:material-icons-extended", version.ref = "materialIconsExtended" }