Migrate from Koin to Dagger/Hilt
This commit is contained in:
@@ -3,6 +3,7 @@ plugins {
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-kapt'
|
||||
id 'kotlin-parcelize'
|
||||
id 'dagger.hilt.android.plugin'
|
||||
}
|
||||
|
||||
android {
|
||||
@@ -29,7 +30,7 @@ android {
|
||||
buildConfigField 'String', 'SHIKIMORI_CLIENT_ID', "\"${localProperty('shikimori.clientId')}\""
|
||||
buildConfigField 'String', 'SHIKIMORI_CLIENT_SECRET', "\"${localProperty('shikimori.clientSecret')}\""
|
||||
|
||||
if (currentBranch() == "feature/nextgen") {
|
||||
if (currentBranch().startsWith("feature/nextgen")) {
|
||||
applicationIdSuffix = '.next'
|
||||
}
|
||||
}
|
||||
@@ -118,7 +119,11 @@ dependencies {
|
||||
implementation 'com.hannesdorfmann:adapterdelegates4-kotlin-dsl:4.3.2'
|
||||
implementation 'com.hannesdorfmann:adapterdelegates4-kotlin-dsl-viewbinding:4.3.2'
|
||||
|
||||
implementation 'io.insert-koin:koin-android:3.2.0'
|
||||
implementation "com.google.dagger:hilt-android:2.42"
|
||||
kapt "com.google.dagger:hilt-compiler:2.42"
|
||||
implementation 'androidx.hilt:hilt-work:1.0.0'
|
||||
kapt 'androidx.hilt:hilt-compiler:1.0.0'
|
||||
|
||||
implementation 'io.coil-kt:coil-base:2.1.0'
|
||||
implementation 'io.coil-kt:coil-svg:2.1.0'
|
||||
implementation 'com.davemorrissey.labs:subsampling-scale-image-view-androidx:3.10.0'
|
||||
@@ -139,9 +144,10 @@ dependencies {
|
||||
androidTestImplementation 'androidx.test.ext:junit-ktx:1.1.3'
|
||||
|
||||
androidTestImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4'
|
||||
androidTestImplementation 'io.insert-koin:koin-test:3.2.0'
|
||||
androidTestImplementation 'io.insert-koin:koin-test-junit4:3.2.0'
|
||||
|
||||
androidTestImplementation 'androidx.room:room-testing:2.4.2'
|
||||
androidTestImplementation 'com.squareup.moshi:moshi-kotlin:1.13.0'
|
||||
|
||||
androidTestImplementation 'com.google.dagger:hilt-android-testing:2.42'
|
||||
kaptAndroidTest 'com.google.dagger:hilt-android-compiler:2.42'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user