From 013308cda5464b81bca5e4664b8880b620ac915b Mon Sep 17 00:00:00 2001 From: andronicus_kim Date: Fri, 20 Aug 2021 14:58:23 +0300 Subject: [PATCH 1/2] adds KOIN dependencies --- buildSrc/src/main/kotlin/Dependencies.kt | 7 +++++++ daraja/build.gradle.kts | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/buildSrc/src/main/kotlin/Dependencies.kt b/buildSrc/src/main/kotlin/Dependencies.kt index 269a2bc..e59faac 100644 --- a/buildSrc/src/main/kotlin/Dependencies.kt +++ b/buildSrc/src/main/kotlin/Dependencies.kt @@ -18,6 +18,9 @@ object Versions { // DI - Dagger const val dagger = "2.14.1" + //DI-KOIN + const val koin = "2.2.3" + // Logging - debug builds const val timber = "4.7.1" const val leakCanary = "2.4" @@ -95,6 +98,10 @@ object Libraries { const val processor = "com.google.dagger:dagger-android-processor:${Versions.dagger}" const val daggerCompiler = "com.google.dagger:dagger-compiler:${Versions.dagger}" + //DI - KOIN + const val koin = "io.insert-koin:koin-android:${Versions.koin}" + const val koinViewModel = "io.insert-koin:koin-android-viewmodel:${Versions.koin}" + // Debug - for debug builds only const val timber = "com.jakewharton.timber:timber:${Versions.timber}" const val leakCanary = "com.squareup.leakcanary:leakcanary-android:${Versions.leakCanary}" diff --git a/daraja/build.gradle.kts b/daraja/build.gradle.kts index 53f84f3..ba9581e 100644 --- a/daraja/build.gradle.kts +++ b/daraja/build.gradle.kts @@ -75,6 +75,10 @@ dependencies { debugImplementation(Libraries.chunkerDebug) releaseImplementation(Libraries.chunkerRelease) + //DI-KOIN + implementation(Libraries.koin) + implementation(Libraries.koinViewModel) + // debug implementation(Libraries.timber) From d4f9170a3320c93757d1d14f32dbbd950c21b40e Mon Sep 17 00:00:00 2001 From: andronicus_kim Date: Fri, 20 Aug 2021 18:01:35 +0300 Subject: [PATCH 2/2] migrates KOIN to V3 --- buildSrc/src/main/kotlin/Dependencies.kt | 3 +-- daraja/build.gradle.kts | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/buildSrc/src/main/kotlin/Dependencies.kt b/buildSrc/src/main/kotlin/Dependencies.kt index 5a834f0..9fd09cc 100644 --- a/buildSrc/src/main/kotlin/Dependencies.kt +++ b/buildSrc/src/main/kotlin/Dependencies.kt @@ -16,7 +16,7 @@ object Versions { const val lifecycle = "2.2.0" //DI-KOIN - const val koin = "2.2.3" + const val koin = "3.1.2" // Logging - debug builds const val timber = "4.7.1" @@ -90,7 +90,6 @@ object Libraries { //DI - KOIN const val koin = "io.insert-koin:koin-android:${Versions.koin}" - const val koinViewModel = "io.insert-koin:koin-android-viewmodel:${Versions.koin}" // Debug - for debug builds only const val timber = "com.jakewharton.timber:timber:${Versions.timber}" diff --git a/daraja/build.gradle.kts b/daraja/build.gradle.kts index ba9581e..04d907f 100644 --- a/daraja/build.gradle.kts +++ b/daraja/build.gradle.kts @@ -77,7 +77,6 @@ dependencies { //DI-KOIN implementation(Libraries.koin) - implementation(Libraries.koinViewModel) // debug implementation(Libraries.timber)