Hello, can someone recommend a good Dependency Inj...
# multiplatform
o
Hello, can someone recommend a good Dependency Injection Library/Framework for MPP?
j
first alpha version of Koin that supports KMP was released about a week ago
o
Oh, great, cheers!
j
also wrote short article on it's use in repo I have https://johnoreilly.dev/posts/kotlinmultiplatform-koin/
👍 1
k
i have been waiting for KMP DI
nice to hear
i wrote my own in the meantime
e
I’m pretty sure Kodein has been multiplatform for a while now, that’s my DI framework of choice: https://github.com/Kodein-Framework/Kodein-DI
o
@Evan R. I’ve tried the Koin, and it works great! Thanks for help tho
k
kodein only supports the main thread
which is a non-starter
e
I haven’t heard that, from what I’ve seen it has support for sharing the container across threads and making thread-local singletons. Can you point me to some documentation saying otherwise? I’d like to understand the limitations better
k
i don't know about documentation, this is from first hand experience