To Inject or not inject, Dependency Injection in a Kotlin world (appbuilders.ch 2018)

To Inject or not inject, Dependency Injection in a Kotlin world (appbuilders.ch 2018)

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.

A8b79d304b5184e5a5b0a109590f6683?s=128

Danny Preussler

April 16, 2018
Tweet