Update Koin to version 3.1.3
This commit is contained in:
parent
3ff3f92a41
commit
80f29f9b3b
13 changed files with 25 additions and 25 deletions
|
@ -16,7 +16,7 @@ dependencies {
|
|||
testImplementation "com.google.truth:truth:${versions.truth}"
|
||||
testImplementation "org.mockito:mockito-core:${versions.mockito}"
|
||||
testImplementation "org.mockito.kotlin:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "org.koin:koin-test:${versions.koin}"
|
||||
testImplementation "io.insert-koin:koin-test-junit4:${versions.koin}"
|
||||
}
|
||||
|
||||
android {
|
||||
|
|
|
@ -17,7 +17,7 @@ dependencies {
|
|||
testImplementation "com.google.truth:truth:${versions.truth}"
|
||||
testImplementation "org.mockito:mockito-core:${versions.mockito}"
|
||||
testImplementation "org.mockito.kotlin:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "org.koin:koin-test:${versions.koin}"
|
||||
testImplementation "io.insert-koin:koin-test-junit4:${versions.koin}"
|
||||
}
|
||||
|
||||
android {
|
||||
|
|
|
@ -17,7 +17,7 @@ dependencies {
|
|||
testImplementation "com.google.truth:truth:${versions.truth}"
|
||||
testImplementation "org.mockito:mockito-core:${versions.mockito}"
|
||||
testImplementation "org.mockito.kotlin:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "org.koin:koin-test:${versions.koin}"
|
||||
testImplementation "io.insert-koin:koin-test-junit4:${versions.koin}"
|
||||
}
|
||||
|
||||
android {
|
||||
|
|
|
@ -8,7 +8,7 @@ dependencies {
|
|||
|
||||
implementation project(':plugins:openpgp-api-lib:openpgp-api')
|
||||
|
||||
api "org.koin:koin-androidx-viewmodel:${versions.koin}"
|
||||
api "io.insert-koin:koin-android:${versions.koin}"
|
||||
|
||||
api "androidx.annotation:annotation:${versions.androidxAnnotation}"
|
||||
|
||||
|
@ -37,7 +37,7 @@ dependencies {
|
|||
testImplementation "org.mockito:mockito-core:${versions.mockito}"
|
||||
testImplementation "org.mockito.kotlin:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "org.jdom:jdom2:2.0.6"
|
||||
testImplementation "org.koin:koin-test:${versions.koin}"
|
||||
testImplementation "io.insert-koin:koin-test-junit4:${versions.koin}"
|
||||
}
|
||||
|
||||
android {
|
||||
|
|
|
@ -36,7 +36,7 @@ dependencies {
|
|||
testImplementation "com.google.truth:truth:${versions.truth}"
|
||||
testImplementation "org.mockito:mockito-core:${versions.mockito}"
|
||||
testImplementation "org.mockito.kotlin:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "org.koin:koin-test:${versions.koin}"
|
||||
testImplementation "io.insert-koin:koin-test-junit4:${versions.koin}"
|
||||
}
|
||||
|
||||
android {
|
||||
|
|
|
@ -10,7 +10,7 @@ import com.fsck.k9.ui.folders.FolderNameFormatter
|
|||
import com.fsck.k9.ui.helper.SizeFormatter
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.koin.core.annotation.KoinInternal
|
||||
import org.koin.core.annotation.KoinInternalApi
|
||||
import org.koin.core.logger.PrintLogger
|
||||
import org.koin.core.parameter.parametersOf
|
||||
import org.koin.java.KoinJavaComponent
|
||||
|
@ -31,17 +31,17 @@ class DependencyInjectionTest : AutoCloseKoinTest() {
|
|||
}
|
||||
val autocryptTransferView = mock<AutocryptKeyTransferActivity>()
|
||||
|
||||
@KoinInternal
|
||||
@KoinInternalApi
|
||||
@Test
|
||||
fun testDependencyTree() {
|
||||
KoinJavaComponent.getKoin().setupLogger(PrintLogger())
|
||||
|
||||
getKoin().checkModules {
|
||||
create<OpenPgpApiManager> { parametersOf(lifecycleOwner) }
|
||||
withParameter<OpenPgpApiManager> { lifecycleOwner }
|
||||
create<AutocryptKeyTransferPresenter> { parametersOf(lifecycleOwner, autocryptTransferView) }
|
||||
create<FolderNameFormatter> { parametersOf(RuntimeEnvironment.application) }
|
||||
create<SizeFormatter> { parametersOf(RuntimeEnvironment.application) }
|
||||
create<ChangelogViewModel> { parametersOf(ChangeLogMode.CHANGE_LOG) }
|
||||
withParameter<FolderNameFormatter> { RuntimeEnvironment.application }
|
||||
withParameter<SizeFormatter> { RuntimeEnvironment.application }
|
||||
withParameter<ChangelogViewModel> { ChangeLogMode.CHANGE_LOG }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ dependencies {
|
|||
testImplementation "com.google.truth:truth:${versions.truth}"
|
||||
testImplementation "org.mockito:mockito-core:${versions.mockito}"
|
||||
testImplementation "org.mockito.kotlin:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "org.koin:koin-test:${versions.koin}"
|
||||
testImplementation "io.insert-koin:koin-test-junit4:${versions.koin}"
|
||||
}
|
||||
|
||||
android {
|
||||
|
|
|
@ -10,7 +10,7 @@ import com.fsck.k9.ui.folders.FolderNameFormatter
|
|||
import com.fsck.k9.ui.helper.SizeFormatter
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.koin.core.annotation.KoinInternal
|
||||
import org.koin.core.annotation.KoinInternalApi
|
||||
import org.koin.core.logger.PrintLogger
|
||||
import org.koin.core.parameter.parametersOf
|
||||
import org.koin.java.KoinJavaComponent
|
||||
|
@ -31,17 +31,17 @@ class DependencyInjectionTest : AutoCloseKoinTest() {
|
|||
}
|
||||
val autocryptTransferView = mock<AutocryptKeyTransferActivity>()
|
||||
|
||||
@KoinInternal
|
||||
@KoinInternalApi
|
||||
@Test
|
||||
fun testDependencyTree() {
|
||||
KoinJavaComponent.getKoin().setupLogger(PrintLogger())
|
||||
|
||||
getKoin().checkModules {
|
||||
create<OpenPgpApiManager> { parametersOf(lifecycleOwner) }
|
||||
withParameter<OpenPgpApiManager> { lifecycleOwner }
|
||||
create<AutocryptKeyTransferPresenter> { parametersOf(lifecycleOwner, autocryptTransferView) }
|
||||
create<FolderNameFormatter> { parametersOf(RuntimeEnvironment.application) }
|
||||
create<SizeFormatter> { parametersOf(RuntimeEnvironment.application) }
|
||||
create<ChangelogViewModel> { parametersOf(ChangeLogMode.CHANGE_LOG) }
|
||||
withParameter<FolderNameFormatter> { RuntimeEnvironment.application }
|
||||
withParameter<SizeFormatter> { RuntimeEnvironment.application }
|
||||
withParameter<ChangelogViewModel> { ChangeLogMode.CHANGE_LOG }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
|
|||
apply plugin: 'org.jetbrains.kotlin.android'
|
||||
|
||||
dependencies {
|
||||
api "org.koin:koin-core:${versions.koin}"
|
||||
api "io.insert-koin:koin-core:${versions.koin}"
|
||||
|
||||
implementation project(":app:core")
|
||||
implementation "androidx.core:core-ktx:${versions.androidxCore}"
|
||||
|
@ -18,7 +18,7 @@ dependencies {
|
|||
testImplementation "com.google.truth:truth:${versions.truth}"
|
||||
testImplementation "org.mockito:mockito-core:${versions.mockito}"
|
||||
testImplementation "org.mockito.kotlin:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "org.koin:koin-test:${versions.koin}"
|
||||
testImplementation "io.insert-koin:koin-test-junit4:${versions.koin}"
|
||||
testImplementation "commons-io:commons-io:${versions.commonsIo}"
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ dependencies {
|
|||
|
||||
api "junit:junit:${versions.junit}"
|
||||
api "org.robolectric:robolectric:${versions.robolectric}"
|
||||
api "org.koin:koin-core:${versions.koin}"
|
||||
api "io.insert-koin:koin-core:${versions.koin}"
|
||||
api "org.mockito:mockito-core:${versions.mockito}"
|
||||
api "org.mockito.kotlin:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ dependencies {
|
|||
testImplementation "com.google.truth:truth:${versions.truth}"
|
||||
testImplementation "org.mockito:mockito-core:${versions.mockito}"
|
||||
testImplementation "org.mockito.kotlin:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "org.koin:koin-test:${versions.koin}"
|
||||
testImplementation "io.insert-koin:koin-test-junit4:${versions.koin}"
|
||||
}
|
||||
|
||||
android {
|
||||
|
|
|
@ -22,7 +22,7 @@ dependencies {
|
|||
testImplementation "com.google.truth:truth:${versions.truth}"
|
||||
testImplementation "org.mockito:mockito-core:${versions.mockito}"
|
||||
testImplementation "org.mockito.kotlin:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "org.koin:koin-test:${versions.koin}"
|
||||
testImplementation "io.insert-koin:koin-test-junit4:${versions.koin}"
|
||||
}
|
||||
|
||||
android {
|
||||
|
|
|
@ -34,7 +34,7 @@ buildscript {
|
|||
'okio': '2.10.0',
|
||||
'moshi': '1.12.0',
|
||||
'timber': '5.0.1',
|
||||
'koin': '2.2.2',
|
||||
'koin': '3.1.3',
|
||||
'commonsIo': '2.6',
|
||||
'mime4j': '0.8.3',
|
||||
'okhttp': '4.9.1',
|
||||
|
|
Loading…
Reference in a new issue