arnaud.giuliani
11/02/2021, 11:17 AMarnaud.giuliani
11/02/2021, 11:18 AMlen
11/02/2021, 2:00 PM@Inject
annotation works with Dagger) and not write a single module given that all the dependencies can be injected?arnaud.giuliani
11/02/2021, 2:37 PMlen
11/02/2021, 2:45 PMMyClass(get(), get(), get())
. I know there's now the single<MyClass>()
but you still have to put it into a module and that gets very verbose if you have many classes where you use injections, while in Dagger you just write @Inject
in MyClass
and @Singleton
when needed.arnaud.giuliani
11/02/2021, 2:47 PM@Single
, ksp compiler will just generate default module for you