From 00880ae774d2bfa78707549b232268be2739ae94 Mon Sep 17 00:00:00 2001 From: Arnaud Giuliani Date: Fri, 3 May 2024 18:07:19 +0200 Subject: [PATCH 1/3] libraries update --- projects/gradle/libs.versions.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/projects/gradle/libs.versions.toml b/projects/gradle/libs.versions.toml index cb0641a8a..7b40fb791 100644 --- a/projects/gradle/libs.versions.toml +++ b/projects/gradle/libs.versions.toml @@ -11,16 +11,16 @@ dokka = "1.9.10" # Android agp = "7.4.2" android-appcompat = "1.6.1" -android-activity = "1.8.2" -android-fragment = "1.6.2" +android-activity = "1.9.0" +android-fragment = "1.7.0" androidx-viewmodel = "2.7.0" androidx-commonJava8 = "2.7.0" androidx-workmanager = "2.9.0" androidx-navigation = "2.7.7" # Compose # /!\ Compose compiler in gradle.properties /!\ -composeJB = "1.6.1" -composeJetpackRuntime = "1.6.5" +composeJB = "1.6.2" +composeJetpackRuntime = "1.6.7" composeJetpackViewmodel = "2.7.0" # Test stately = "2.0.6" @@ -29,7 +29,7 @@ jupiter = "5.9.3" mockito = "4.7.0" mockk = "1.13.2" # Ktor -ktor = "2.3.9" +ktor = "2.3.10" slf4j = "1.7.36" [libraries] From d9b53e5ee927f17b66df99bd06a550d499769b5b Mon Sep 17 00:00:00 2001 From: Arnaud Giuliani Date: Fri, 3 May 2024 18:15:44 +0200 Subject: [PATCH 2/3] examples update + Beta4 --- examples/gradle/versions.gradle | 10 +++++----- projects/gradle.properties | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/gradle/versions.gradle b/examples/gradle/versions.gradle index 877116c14..360e591e5 100644 --- a/examples/gradle/versions.gradle +++ b/examples/gradle/versions.gradle @@ -2,15 +2,15 @@ ext { // Kotlin kotlin_version = '1.9.23' // Koin Versions - koin_version = '3.6.0-Beta2' + koin_version = '3.6.0-Beta4' koin_android_version = koin_version - koin_compose_version = "1.2.0-Beta2" + koin_compose_version = "1.2.0-Beta4" coroutines_version = "1.8.0" - ktor_version = "2.3.9" + ktor_version = "2.3.10" // Compose compose_compiler = "1.5.11" - jb_compose_version = "1.6.1" + jb_compose_version = "1.6.2" // Test junit_version = "4.13.2" @@ -22,5 +22,5 @@ ext { android_min_version = 14 android_target_version = 34 android_build_tools_version = '33.0.1' - android_gradle_version = '7.4.1' + android_gradle_version = '7.4.2' } diff --git a/projects/gradle.properties b/projects/gradle.properties index b7a0a0ed5..c3c1688ce 100644 --- a/projects/gradle.properties +++ b/projects/gradle.properties @@ -8,8 +8,8 @@ org.gradle.parallel=true kotlin.code.style=official #Koin -koinVersion=3.6.0-Beta3 -koinComposeVersion=1.2.0-Beta3 +koinVersion=3.6.0-Beta4 +koinComposeVersion=1.2.0-Beta4 #Compose jetpackComposeCompiler=1.5.11 From 3378cbc9dd86b92dc78175c9487b004144cf5371 Mon Sep 17 00:00:00 2001 From: Arnaud Giuliani Date: Fri, 3 May 2024 18:48:38 +0200 Subject: [PATCH 3/3] Deprecate checkModules() API in favor of better verify() API --- .../src/commonMain/kotlin/org/koin/test/check/CheckModules.kt | 4 ++++ .../commonMain/kotlin/org/koin/test/check/CheckModulesDSL.kt | 2 ++ 2 files changed, 6 insertions(+) diff --git a/projects/core/koin-test/src/commonMain/kotlin/org/koin/test/check/CheckModules.kt b/projects/core/koin-test/src/commonMain/kotlin/org/koin/test/check/CheckModules.kt index 96eb7c472..025ec2929 100644 --- a/projects/core/koin-test/src/commonMain/kotlin/org/koin/test/check/CheckModules.kt +++ b/projects/core/koin-test/src/commonMain/kotlin/org/koin/test/check/CheckModules.kt @@ -40,6 +40,7 @@ import org.koin.test.parameter.MockParameter /** * Check all definition's dependencies - start all modules and check if definitions can run */ +@Deprecated("Migrate to verify() API") fun KoinApplication.checkModules(parameters: CheckParameters? = null) = koin.checkModules(parameters) /** @@ -49,6 +50,7 @@ fun KoinApplication.checkModules(parameters: CheckParameters? = null) = koin.che * @param parameters - parameter setup * @param appDeclaration - koin Application */ +@Deprecated("Migrate to verify() API") fun checkModules(level: Level = Level.INFO, parameters: CheckParameters? = null, appDeclaration: KoinAppDeclaration) { startKoin(appDeclaration) .logger(KoinPlatformTools.defaultLogger(level)) @@ -62,6 +64,7 @@ fun checkModules(level: Level = Level.INFO, parameters: CheckParameters? = null, * @param appDeclaration - Koin app config if needed * @param parameters - Check parameters DSL */ +@Deprecated("Migrate to verify() API") fun checkKoinModules(modules: List, appDeclaration: KoinAppDeclaration = {}, parameters: CheckParameters? = null) { startKoin(appDeclaration) .modules(modules) @@ -98,6 +101,7 @@ fun checkKoinModules(vararg modules: Module, level: Level = Level.INFO, paramete /** * Check all definition's dependencies - start all modules and check if definitions can run */ +@Deprecated("Migrate to verify() API") fun Koin.checkModules(parametersDefinition: CheckParameters? = null) { logger.info("[Check] checking modules ...") diff --git a/projects/core/koin-test/src/commonMain/kotlin/org/koin/test/check/CheckModulesDSL.kt b/projects/core/koin-test/src/commonMain/kotlin/org/koin/test/check/CheckModulesDSL.kt index f41ab1310..5c61183bf 100644 --- a/projects/core/koin-test/src/commonMain/kotlin/org/koin/test/check/CheckModulesDSL.kt +++ b/projects/core/koin-test/src/commonMain/kotlin/org/koin/test/check/CheckModulesDSL.kt @@ -26,8 +26,10 @@ import kotlin.reflect.KClass //TODO TO BE DEPRECATED in 3.6 +@Deprecated("Migrate to verify() API") data class CheckedComponent(val qualifier: Qualifier? = null, val type: KClass<*>) +@Deprecated("Migrate to verify() API") class ParametersBinding(val koin: Koin) { val parametersCreators = mutableMapOf()