Dependency Injection via frameworks like Dagger were present in most modern Android projects.
But then Kotlin happened. And since then a bunch of new libraries like Koin or Kodein appeared. Developers are even writing articles how to do DI without any framework.
Some argue that those don’t even offer real dependency injection. Let’s look at that argument and compare the approaches.
So, is there something wrong with Dagger & co. in Kotlin? Are they obsolete? What are the alternatives? Let’s dive in.
Danny signed the Software Craftsmanship manifesto as a strong believer in the value of lifelong learning. As Google Developer Expert for Android and Kotlin he talks about testing and testable architectures all over the world. From Berlin he lead Android teams at Viacom, eBay and Groupon.