diff --git a/core/koin-core/src/commonMain/kotlin/org/koin/core/KoinApplication.kt b/core/koin-core/src/commonMain/kotlin/org/koin/core/KoinApplication.kt index b03bf4c8d..dde5f2a04 100644 --- a/core/koin-core/src/commonMain/kotlin/org/koin/core/KoinApplication.kt +++ b/core/koin-core/src/commonMain/kotlin/org/koin/core/KoinApplication.kt @@ -125,6 +125,14 @@ class KoinApplication private constructor() { koin.close() } + internal fun unloadModules(modules: List) { + koin.unloadModules(modules) + } + + internal fun unloadModules(module: Module) { + koin.unloadModules(listOf(module)) + } + companion object { /** diff --git a/core/koin-core/src/commonTest/kotlin/org/koin/core/KoinApplicationIsolationTest.kt b/core/koin-core/src/commonTest/kotlin/org/koin/core/KoinApplicationIsolationTest.kt index 9161c1d67..445cd3e43 100644 --- a/core/koin-core/src/commonTest/kotlin/org/koin/core/KoinApplicationIsolationTest.kt +++ b/core/koin-core/src/commonTest/kotlin/org/koin/core/KoinApplicationIsolationTest.kt @@ -54,7 +54,7 @@ class KoinApplicationIsolationTest { } @Test - fun `can isolate koin apps & standalone`() { + fun `can isolate koin apps and standalone`() { startKoin { modules( module { diff --git a/core/koin-core/src/commonTest/kotlin/org/koin/core/ObjectScopeTest.kt b/core/koin-core/src/commonTest/kotlin/org/koin/core/ObjectScopeTest.kt index d0d77fcae..c2ab52b55 100644 --- a/core/koin-core/src/commonTest/kotlin/org/koin/core/ObjectScopeTest.kt +++ b/core/koin-core/src/commonTest/kotlin/org/koin/core/ObjectScopeTest.kt @@ -35,7 +35,7 @@ class ObjectScopeTest { } @Test - fun `typed scope & source`() { + fun `typed scope and source`() { val koin = startKoin { printLogger(Level.DEBUG) modules(module { @@ -58,7 +58,7 @@ class ObjectScopeTest { } @Test - fun `typed scope & source with get`() { + fun `typed scope and source with get`() { val koin = startKoin { printLogger(Level.DEBUG) modules(module { diff --git a/core/koin-core/src/commonTest/kotlin/org/koin/dsl/AdditionalTypeBindingTest.kt b/core/koin-core/src/commonTest/kotlin/org/koin/dsl/AdditionalTypeBindingTest.kt index d20afe54c..41c8bf7c1 100644 --- a/core/koin-core/src/commonTest/kotlin/org/koin/dsl/AdditionalTypeBindingTest.kt +++ b/core/koin-core/src/commonTest/kotlin/org/koin/dsl/AdditionalTypeBindingTest.kt @@ -121,7 +121,7 @@ class AdditionalTypeBindingTest { } @Test - fun `should not conflict name & default type`() { + fun `should not conflict name and default type`() { val app = koinApplication { printLogger() modules( diff --git a/core/koin-core/src/commonTest/kotlin/org/koin/dsl/CreateOnStart.kt b/core/koin-core/src/commonTest/kotlin/org/koin/dsl/CreateOnStart.kt index fcee1f3a2..065c4896e 100644 --- a/core/koin-core/src/commonTest/kotlin/org/koin/dsl/CreateOnStart.kt +++ b/core/koin-core/src/commonTest/kotlin/org/koin/dsl/CreateOnStart.kt @@ -17,7 +17,7 @@ class CreateOnStart { } @Test - fun `works with koin 2_2_3 and koin 3_0_2, breaks with koin 3_1_4`() { + fun `works with koin 2_2_3 and koin 3_0_2 breaks with koin 3_1_4`() { startKoin { modules(module { single(createdAtStart = true) { InjectionTarget() }