From 664df1e5a155f23a678a62e1aaab11506d505cc2 Mon Sep 17 00:00:00 2001 From: Rafal Wisniewski <2krafal.wisniewski@gmail.com> Date: Mon, 27 Apr 2026 19:58:38 +0200 Subject: [PATCH] init --- app/build.gradle.kts | 50 ++++++++++++++------------------------- gradle/libs.versions.toml | 27 +++++++++++++++++++++ 2 files changed, 45 insertions(+), 32 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 816387e..d3fa9ab 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -78,46 +78,32 @@ dependencies { debugImplementation(libs.androidx.compose.ui.tooling) debugImplementation(libs.androidx.compose.ui.test.manifest) - coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5") - val room_version = "2.8.4" + coreLibraryDesugaring(libs.tools.desugar.jdk.libs) - implementation("androidx.room:room-runtime:$room_version") + implementation(libs.androidx.room.runtime) // If this project uses any Kotlin source, use Kotlin Symbol Processing (KSP) // See Add the KSP plugin to your project - ksp("androidx.room:room-compiler:$room_version") + ksp(libs.androidx.room.compiler) - // optional - Kotlin Extensions and Coroutines support for Room - implementation("androidx.room:room-ktx:$room_version") - - // optional - RxJava2 support for Room - implementation("androidx.room:room-rxjava2:$room_version") - - // optional - RxJava3 support for Room - implementation("androidx.room:room-rxjava3:$room_version") - - // optional - Guava support for Room, including Optional and ListenableFuture - implementation("androidx.room:room-guava:$room_version") - - // optional - Test helpers - testImplementation("androidx.room:room-testing:$room_version") - - // optional - Paging 3 Integration - implementation("androidx.room:room-paging:$room_version") - - implementation("androidx.paging:paging-runtime:3.4.2") - implementation("androidx.paging:paging-compose:3.4.2") + implementation(libs.androidx.room.ktx) + implementation(libs.androidx.room.rxjava2) + implementation(libs.androidx.room.rxjava3) + implementation(libs.androidx.room.guava) + testImplementation(libs.androidx.room.testing) + implementation(libs.androidx.room.paging) + implementation(libs.androidx.paging.runtime) + implementation(libs.androidx.paging.compose) implementation(libs.androidx.datastore.preferences) - implementation(libs.icons.material.symbols.outlined.android) implementation(libs.icons.material.symbols.outlined.filled.android) - implementation("com.google.dagger:hilt-android:2.57.1") - ksp("com.google.dagger:hilt-android-compiler:2.57.1") - implementation("androidx.hilt:hilt-navigation-compose:1.3.0") + implementation(libs.hilt.android) + ksp(libs.hilt.android.compiler) + implementation(libs.androidx.hilt.navigation.compose) - implementation("io.ktor:ktor-client-core:3.4.1") - implementation("io.ktor:ktor-client-okhttp:3.4.1") - implementation("org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.10.0") - implementation("org.apache.commons:commons-csv:1.5") + implementation(libs.ktor.client.core) + implementation(libs.ktor.client.okhttp) + implementation(libs.kotlinx.serialization.json.jvm) + implementation(libs.commons.csv) } \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index e7d7fcb..d758490 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,10 +1,13 @@ [versions] agp = "8.13.2" commonsCsv = "1.14.1" +commonsCsvVersion = "1.14.1" datastorePreferences = "1.2.1" desugar_jdk_libsVersion = "2.1.5" hiltAndroid = "2.59.2" +hiltAndroidCompiler = "2.57.1" hiltNavigationCompose = "1.3.0" +hiltNavigationComposeVersion = "1.3.0" iconsMaterialSymbolsOutlinedAndroid = "2.2.1" kotlin = "2.2.21" coreKtx = "1.10.1" @@ -20,7 +23,17 @@ composeBom = "2024.09.00" navigationCompose = "2.9.7" foundationLayout = "1.10.5" pagingCompose = "3.4.2" +pagingComposeVersion = "3.4.2" +pagingRuntime = "3.4.2" roomCompiler = "2.8.4" +roomCompilerVersion = "2.8.4" +roomGuava = "2.8.4" +roomKtx = "2.8.4" +roomPaging = "2.8.4" +roomRuntime = "2.8.4" +roomRxjava2 = "2.8.4" +roomRxjava3 = "2.8.4" +roomTesting = "2.8.4" uiautomator = "2.3.0" benchmarkMacroJunit4 = "1.2.4" baselineprofile = "1.2.4" @@ -44,6 +57,20 @@ androidx-datastore-preferences = { module = "androidx.datastore:datastore-prefer #commons-csv = { module = "org.apache.commons:commons-csv", version.ref = "commonsCsv" } #hilt-android = { module = "com.google.dagger:hilt-android", version.ref = "hiltAndroid" } #hilt-android-compiler = { module = "com.google.dagger:hilt-android-compiler", version.ref = "hiltAndroid" } +androidx-hilt-navigation-compose = { module = "androidx.hilt:hilt-navigation-compose", version.ref = "hiltNavigationComposeVersion" } +androidx-paging-compose = { module = "androidx.paging:paging-compose", version.ref = "pagingComposeVersion" } +androidx-paging-runtime = { module = "androidx.paging:paging-runtime", version.ref = "pagingRuntime" } +androidx-room-compiler = { module = "androidx.room:room-compiler", version.ref = "roomCompilerVersion" } +androidx-room-guava = { module = "androidx.room:room-guava", version.ref = "roomGuava" } +androidx-room-ktx = { module = "androidx.room:room-ktx", version.ref = "roomKtx" } +androidx-room-paging = { module = "androidx.room:room-paging", version.ref = "roomPaging" } +androidx-room-runtime = { module = "androidx.room:room-runtime", version.ref = "roomRuntime" } +androidx-room-rxjava2 = { module = "androidx.room:room-rxjava2", version.ref = "roomRxjava2" } +androidx-room-rxjava3 = { module = "androidx.room:room-rxjava3", version.ref = "roomRxjava3" } +androidx-room-testing = { module = "androidx.room:room-testing", version.ref = "roomTesting" } +commons-csv = { module = "org.apache.commons:commons-csv", version.ref = "commonsCsvVersion" } +hilt-android = { module = "com.google.dagger:hilt-android", version.ref = "hiltAndroidCompiler" } +hilt-android-compiler = { module = "com.google.dagger:hilt-android-compiler", version.ref = "hiltAndroidCompiler" } icons-material-symbols-outlined-android = { module = "com.composables:icons-material-symbols-outlined-android", version.ref = "iconsMaterialSymbolsOutlinedAndroid" } icons-material-symbols-outlined-filled-android = { module = "com.composables:icons-material-symbols-outlined-filled-android", version.ref = "iconsMaterialSymbolsOutlinedAndroid" } junit = { group = "junit", name = "junit", version.ref = "junit" }