Do you use dependency injection library for your D...
# compose-desktop
a
Do you use dependency injection library for your Desktop app? If so what is it?
c
a
Thanks @Chrimaeon. I am learning Hilt for Android and I wanted my skill to be transferrable. Is Dagger(which Hilt is based on) popular too?
c
Of course - I was thinking of Kotlin mutiplatform project. If you are on a JVM, Dagger is anyway the better library in my opinion.
a
Aha. I am also trying to build a KMP project with Android and Desktop sharing code.. does it make sense @Chrimaeon?
BTW I’m not sure if i need to mention you on my thread to get you notified 🙂
c
If you are also thinking of integrating Web and iOS or windows native use Koin already. if you are staying on a JVM, use Dagger.
No need to mention. If you reply on a post, you’ll get notified on that one.
a
habits die hard 🙂
@Chrimaeon thanks. is there a reason Dagger is not compatible with KMP?
c
It’s written in Java 😅
a
Aha so Koin is written with Kotlin from ground up.. got you! thanks
b
There's also #kodein which I'm a big fan of
1
584 Views