Hi! I'm trying to migrate from AndroidX Navigation...
# koin
p
Hi! I'm trying to migrate from AndroidX Navigation in a KMP project to Koin Navigation (using modules etc, version 4.2.0-alpha1). I've implemented in common dependencies:
Copy code
// build.gradle.kts
implementation(libs.koin.core)
implementation(libs.koin.core.coroutines)
implementation(libs.koin.compose)
implementation(libs.koin.compose.viewmodel)
implementation(libs.koin.compose.viewmodel.navigation)
implementation(libs.koin.compose.navigation)

// libs.versions.toml
koin = "4.2.0-alpha1"
koin-compose = { module = "io.insert-koin:koin-compose", version.ref = "koin" }
koin-compose-viewmodel = { module = "io.insert-koin:koin-compose-viewmodel", version.ref = "koin" }
koin-compose-viewmodel-navigation = { module = "io.insert-koin:koin-compose-viewmodel-navigation", version.ref = "koin" }
koin-compose-navigation = { module = "io.insert-koin:koin-compose-navigation3", version.ref = "koin" }
koin-core = { module = "io.insert-koin:koin-core", version.ref = "koin" }
koin-core-coroutines = { module = "io.insert-koin:koin-core-coroutines", version.ref = "koin" }
koin-android = { module = "io.insert-koin:koin-android", version.ref = "koin" }
I couldn´t find the import for
NavigationHost
in a
@Composable
function. What am I missing?
🔥 1
a
did you use the navigation3 libs also?NavigationHost is part o the runtime lib
t
I'm a little bit confused. The new navigation 3 library has a NavDisplay. But what/where is NavigationHost except in the "old" (still current) Android navigation libs? Or am I confusing things here? BTW: Is there an envisioned release date for Koin 4.2.x?
@arnaud.giuliani a big thank you for Koin and all the hard work you are putting into it. It's a fantastic framework. 💚
❤️ 1
p
I'ms using only
implementation("org.jetbrains.androidx.navigation:navigation-compose:2.9.1")
in the common module. Now I'm trying to migrate for this new navigation using Koin 🤩
a
I need to polish perhaps things around, let me know if there is some glitches
p
Do you know if exists a simple and small project with it running? A sample.
a
apart of Nav3 recipes?