https://kotlinlang.org logo
#kodein
Title
y

yousuf.haque

11/29/2016, 2:57 PM
hey @salomonbrys and @sorinirimies I see that you guys say that you replaced dagger 2 with kodein. It totally seems doable, but due to the lack of automatically intantiating dependencies that have @Inject constructors, one has to manually create every single object in the graph and place it inside of the kodein module, no? I personally use a clean-ish architecture, so my repository, interactors, presenters/ViewModels (and because I use Anko), my views are all automatically instantiated and injected (per view!). The kodein documentation claims that there’s no way to automatically instantiate the dependencies; do you guys just bite the bullet and just manually create each object that is to be provided?