Hi anyone knows any project where koin DI is used ...
# compose-web
s
Hi anyone knows any project where koin DI is used for compose web as well?
j
I'm going to implement koin today in my project
s
Ok , please keep me posted here if it works fine. By the time i will also try.
👍 1
j
Copy code
// commonMain
implementation("io.insert-koin:koin-core:$koinVersion")
                implementation("io.insert-koin:koin-compose:$koinComposeVersion")

// androidMain
implementation("io.insert-koin:koin-android:$koinVersion")
Let me know if it helps
c
i
Koin works fine for js targets
s
Thanx @Chris Miller i will check that.
Thanx @jamshedalamqaderi, so you are trying starting koin in composables, i was thinking of something related to doing it in each platform for more control. For example i checked its Kotlin Multiplatform option in the docs.
j
If you have platform specific koin module then you can start the koin from each platform with adding a common and another platform module. The concept is the same...
s
yep, i will try that
thnx