diff --git a/api/build.gradle b/api/build.gradle index f30f3e18..6123c630 100644 --- a/api/build.gradle +++ b/api/build.gradle @@ -52,15 +52,15 @@ dependencies { androidTestImplementation 'androidx.test:runner:1.4.0' androidTestImplementation 'androidx.test:rules:1.4.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' - testImplementation 'com.squareup.okhttp3:mockwebserver:4.9.0' implementation(libs.bundles.koin) testImplementation(libs.bundles.kointest) - implementation 'com.gitlab.mvysny.konsume-xml:konsume-xml:1.0' - implementation 'org.redundent:kotlin-xml-builder:1.7.3' + implementation(libs.konsumexml) + implementation(libs.kotlinxmlbuilder) - api 'com.squareup.okhttp3:okhttp:4.9.1' + implementation(libs.okhttp) + testImplementation(libs.okhttp.mockserver) implementation('com.squareup.retrofit2:retrofit:2.9.0') { exclude group: 'com.squareup.okhttp3', module: 'okhttp3' @@ -71,7 +71,7 @@ dependencies { implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0' - implementation 'com.squareup.moshi:moshi:1.12.0' + implementation 'com.squareup.moshi:moshi:1.15.1' api 'io.reactivex.rxjava2:rxandroid:2.1.1' api 'org.jsoup:jsoup:1.13.1' diff --git a/app/build.gradle b/app/build.gradle index 0afe2ef6..e851b826 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -89,10 +89,6 @@ dependencies { implementation(libs.bundles.koin) testImplementation(libs.bundles.kointest) -/* - testImplementation "io.insert-koin:koin-test:$rootProject.ext.koin_version" - testImplementation "io.insert-koin:koin-test-junit4:$rootProject.ext.koin_version" -*/ implementation 'com.github.bumptech.glide:glide:4.12.0' kapt 'com.github.bumptech.glide:compiler:4.12.0' @@ -118,4 +114,5 @@ dependencies { debugImplementation 'com.facebook.flipper:flipper-network-plugin:0.96.1' implementation(libs.bundles.room) + implementation(libs.bundles.paging) } diff --git a/appcompose/build.gradle b/appcompose/build.gradle index 70510c4e..e0f978f2 100644 --- a/appcompose/build.gradle +++ b/appcompose/build.gradle @@ -81,6 +81,7 @@ dependencies { androidTestImplementation(libs.coroutines.test) implementation(libs.bundles.room) + implementation(libs.bundles.paging) implementation(libs.bundles.koin) androidTestImplementation(libs.bundles.kointest) diff --git a/build.gradle b/build.gradle index 79ca1cd2..7089f77b 100644 --- a/build.gradle +++ b/build.gradle @@ -34,8 +34,6 @@ ext { minSdkVersion = 21 targetSdkVersion = 34 buildToolsVersion = "34.0.0" - - koin_version = "3.3.3" } tasks.register('clean', Delete) { diff --git a/db/build.gradle b/db/build.gradle index 06bc6047..aea3506b 100644 --- a/db/build.gradle +++ b/db/build.gradle @@ -80,20 +80,15 @@ dependencies { kapt(libs.room.compiler) androidTestImplementation(libs.room.testing) - implementation 'com.github.MatrixDev.Roomigrant:RoomigrantLib:0.3.4' + implementation 'com.github.MatrixDev.Roomigrant:RoomigrantLib:0.3.4' //TODO delete kapt 'com.github.MatrixDev.Roomigrant:RoomigrantCompiler:0.3.4' - api 'androidx.paging:paging-runtime:2.1.2' - api 'androidx.paging:paging-common:2.1.2' + implementation(libs.bundles.paging) - api 'joda-time:joda-time:2.10.10' + api 'joda-time:joda-time:2.10.10' //TODO replace with java.time? implementation(libs.bundles.koin) testImplementation(libs.bundles.kointest) - implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3" - implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3' - - api "androidx.paging:paging-runtime-ktx:3.2.1" - api "androidx.paging:paging-compose:3.2.1" + implementation(libs.bundles.coroutines) } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 1c15e3e4..d090c707 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -6,6 +6,8 @@ coil = "2.4.0" coroutines = "1.8.0" room = "2.6.1" koin-bom = "3.5.0" +paging = "3.2.1" +okhttp = "4.11.0" [libraries] bom = { group = "androidx.compose", name = "compose-bom", version.ref = "compose-bom" } @@ -52,6 +54,16 @@ koin-android-compat = { module = "io.insert-koin:koin-android-compat" } #TODO re koin-test = { module = "io.insert-koin:koin-test", version.ref = "koin-bom" } koin-test-junit4 = { module = "io.insert-koin:koin-test-junit4", version.ref = "koin-bom" } +paging-runtime = { module = "androidx.paging:paging-runtime-ktx", version.ref = "paging" } +paging-compose = { module = "androidx.paging:paging-compose", version.ref = "paging" } + +okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" } +okhttp-mockserver = { module = "com.squareup.okhttp3:mockwebserver", version.ref = "okhttp" } + +konsumexml = "com.gitlab.mvysny.konsume-xml:konsume-xml:1.1" +kotlinxmlbuilder = "org.redundent:kotlin-xml-builder:1.7.3" #TODO update this + + [bundles] compose = ["bom", "compose-foundation", "compose-runtime", "compose-animation", "compose-ui", "compose-ui-tooling", "compose-ui-tooling-preview", "compose-material3"] @@ -62,4 +74,5 @@ coil = ["coil-core", "coil-compose"] coroutines = ["coroutines-core", "coroutines-android"] room = ["room-runtime", "room-ktx", "room-rxjava2", "room-paging"] koin = ["koin-bom", "koin-core", "koin-android", "koin-androidx-compose", "koin-android-compat"] -kointest = ["koin-test", "koin-test-junit4"] \ No newline at end of file +kointest = ["koin-test", "koin-test-junit4"] +paging = ["paging-runtime", "paging-compose"] \ No newline at end of file