I'm trying to use koin for compose multiplatform, ...
# koin
o
I'm trying to use koin for compose multiplatform, but adding the dependency for koin compose gives error while syncing
Copy code
:composeApp:commonMain: Could not resolve androidx.lifecycle:lifecycle-runtime-ktx:2.6.1.
Is the compose dependency compatible with compose multiplatform because it only fails for the common and desktop modules(I'm targeting Android and desktop currently)
a
This lib has no support for kotlin multiplatform
koin works with
Copy code
androidx-lifecycle = "2.8.0"
androidx-navigation = "2.8.0-alpha08"
Copy code
androidx-lifecycle-viewmodel-compose = { module = "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "androidx-lifecycle" }
androidx-navigation-compose = { module = "org.jetbrains.androidx.navigation:navigation-compose", version.ref = "androidx-navigation" }
this koin version supports koinViewModel() in commonMain koin-bom = "3.6.0-Beta4"
Copy code
koin-compose-viewmodel = { group = "io.insert-koin", name = "koin-compose-viewmodel", version = "1.2.0-Beta4" }
👍 2