From 73e5c6bc207312b29d7cb284d922faeeaefa4b37 Mon Sep 17 00:00:00 2001 From: Arnaud Giuliani Date: Mon, 13 Jan 2025 11:10:05 +0100 Subject: [PATCH] Fix doc for koinApplication @ Android start --- 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 64fdeabf5..5fd1c96aa 100644 --- a/docs/reference/koin-android/start.md +++ b/docs/reference/koin-android/start.md @@ -79,7 +79,7 @@ By using Gradle packge `koin-androidx-startup`, we can use `KoinStartup` interfa ```kotlin class MainApplication : Application(),KoinStartup { - override fun onKoinStartup(): KoinAppDeclaration = { + override fun onKoinStartup()= koinConfiguration { androidContext(this@MainApplication) modules(appModule) } @@ -90,7 +90,7 @@ class MainApplication : Application(),KoinStartup { } ``` -This replaces the `startKoin` function that is usally used in `onCreate`. +This replaces the `startKoin` function that is usally used in `onCreate`. The `koinConfiguration` function is returning a `KoinConfiguration` instance. :::info `KoinStartup` avoid blocking main thread at for startup time, and offers better performances.