I
I
Igor Novikov2021-05-01 13:02:49
Android
Igor Novikov, 2021-05-01 13:02:49

What DI framework do you use on your project?

Dagger, Hilt, Kodein or Koin? What do you work with the most?
If it's Dagger, are you using AndroidInjector?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2021-05-01
@Nov1k

We are using Dagger.
Hilt is a dagger add-on, we don't use it.
When we had everything on fragments, we used DaggerAndroid inside the modules (gradle module). Then we switched to Conductor , and wrote our own analogue, DaggerConductor.
Another separate topic, how to do DI between dagger modules, I recently talked about on Mobius. There is no video yet, but there is an example .
Koin and Kodein are not exactly a "di framework", but rather a "service locator on steroids". I looked, I didn’t like that everything was in runtime, no static guarantees. We're thinking about taking something for multiplatform, but haven't taken anything yet. We are waiting for Dagger to be on KSP, and KSP - in multiplatform :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question