From 1e3c1b13eb85fabb6db68ea6aa1115cecdc1ca19 Mon Sep 17 00:00:00 2001 From: Arnaud Giuliani Date: Fri, 15 Nov 2024 16:18:22 +0100 Subject: [PATCH 1/3] doc update --- docs/reference/koin-android/start.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/koin-android/start.md b/docs/reference/koin-android/start.md index c79d978eb..64fdeabf5 100644 --- a/docs/reference/koin-android/start.md +++ b/docs/reference/koin-android/start.md @@ -77,7 +77,7 @@ startKoin { By using Gradle packge `koin-androidx-startup`, we can use `KoinStartup` interface to declare your Koin configuration your Application class: ```kotlin -class MainApplication : Application() { +class MainApplication : Application(),KoinStartup { override fun onKoinStartup(): KoinAppDeclaration = { androidContext(this@MainApplication) @@ -93,7 +93,7 @@ class MainApplication : Application() { This replaces the `startKoin` function that is usally used in `onCreate`. :::info -Gain over from `KoinStartup` to regular `startKoin` can go over 30% of time gained, for startup time. +`KoinStartup` avoid blocking main thread at for startup time, and offers better performances. ::: ## Startup Dependency with Koin From 69c9fa255f1a791fab858aae908ffb4abf30f6e3 Mon Sep 17 00:00:00 2001 From: Arnaud Giuliani Date: Fri, 15 Nov 2024 16:30:20 +0100 Subject: [PATCH 2/3] remove confusing compose doc --- docs/reference/koin-compose/compose.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/reference/koin-compose/compose.md b/docs/reference/koin-compose/compose.md index a69602c3f..31e2946bd 100644 --- a/docs/reference/koin-compose/compose.md +++ b/docs/reference/koin-compose/compose.md @@ -25,14 +25,11 @@ for an Android/Multiplatform app, use the following packages: The function `KoinApplication` helps to create Koin application instance, as a Composable: ```kotlin -fun koinConfiguration() = koinApplication { - // your configuration & modules here - modules(...) -} - @Composable fun App() { - KoinApplication(::koinConfiguration) { + KoinApplication(application = { + modules(...) + }) { // your screens here ... MyScreen() From 0c93bd67f3c42adb6505370e660718a7bdfeceed Mon Sep 17 00:00:00 2001 From: Arnaud Giuliani Date: Fri, 15 Nov 2024 17:01:32 +0100 Subject: [PATCH 3/3] minor version patch --- projects/gradle/libs.versions.toml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/projects/gradle/libs.versions.toml b/projects/gradle/libs.versions.toml index df13750dc..748eca47e 100644 --- a/projects/gradle/libs.versions.toml +++ b/projects/gradle/libs.versions.toml @@ -3,7 +3,7 @@ # /!\ Koin in gradle.properties /!\ # Core -kotlin = "2.0.20" +kotlin = "2.0.21" binaryValidator = "0.16.0" publish = "2.0.0" coroutines = "1.8.1" @@ -13,30 +13,30 @@ uuid = "0.8.4" # Android agp = "7.4.2" android-appcompat = "1.7.0" -android-activity = "1.9.2" -android-fragment = "1.8.3" -androidx-lifecycle = "2.8.5" +android-activity = "1.9.3" +android-fragment = "1.8.5" +androidx-lifecycle = "2.8.7" androidx-workmanager = "2.9.1" -androidx-navigation = "2.8.0" -androidx-startup= "1.1.1" +androidx-navigation = "2.8.4" +androidx-startup= "1.2.0" # Compose composeJetpackRuntime = "1.6.8" composeJB = "1.6.11" -composeLifecycle = "2.8.0" -composeNavigation = "2.8.0-alpha09" # 2.8.0-alpha02 to keep compose 1.6.11 -jbCoreBundle = "1.0.0" -jbSavedState = "1.2.0" +composeLifecycle = "2.8.3" +composeNavigation = "2.8.0-alpha10" # 2.8.0-alpha02 to keep compose 1.6.11 +jbCoreBundle = "1.0.1" +jbSavedState = "1.2.2" # Test stately = "2.1.0" junit = "4.13.2" jupiter = "5.9.3" -mockito = "4.7.0" +mockito = "4.8.0" mockk = "1.13.2" # Ktor ktor = "2.3.12" -slf4j = "2.0.13" +slf4j = "2.0.16" uuidVersion = "0.8.4" [libraries]