Danny Preussler
1 min readApr 21, 2018

--

Raman, this is a misunderstanding.
The difference between the two is not the definition of modules. The difference if you asked for a dependency or if someone injects it. Kodein and Koin pull the moment you need the member.

You could use Dagger as a SL too when just asking the component for a class.

I actually gave a presentation about this last week, feel free to have a look
https://speakerdeck.com/dpreussler/to-inject-or-not-inject-dependency-injection-in-a-kotlin-world-appbuilders-dot-ch-2018

--

--

Danny Preussler
Danny Preussler

Written by Danny Preussler

Android @ Soundcloud, Google Developer Expert, Goth, Geek, writing about the daily crazy things in developer life with #Android and #Kotlin

Responses (1)