Hold on ✋🏻 Before you Dagger or Hilt! try this Simple DI.

dagger Oct 31, 2020

Learn pure Kotlin DI then migrate it to HILT or Dagger.



This post is featured at DroidCon and ProAndroidDev, please find the links below to continue reading it from there.

In this Article, I will explain a simpler way to Perform DI using Kotlin, this method you can use for

  • Creating DI framework for your testing environment
  • Adding DI to small or sample projects
  • When you’re in crises or can’t deal with adding Dagger and want to ship your product fast
  • Most importantly the way I do it here, you can migrate it to Dagger with no-brainer steps which I will share in the end too.
  • If you’re new to learning Dagger, it will act as a bridge to understand how atomic dependencies/modules are resolved.
Hold on! Before you Dagger or Hilt! try this Simple DI
By Chetan Garg Learn pure Kotlin DI then migrate it to HILT or Dagger. Dagger is one of the popular frameworks that has been known for Dependency Injection (DI) for Java and Android platforms. It’s in most of the Android projects whether small or large, developers tend to start off with the basic sc…
Hold on ✋🏻 Before you Dagger or Hilt! try this Simple DI.
Dagger is one of the popular frameworks that has been known for Dependency Injection (DI) for Java and Android platforms. It’s in most of the Android projects whether small or large, developers tend…

Enjoy the article?

a clap is much appreciated if you enjoyed. No sign up or cost associated :)




Chetan gupta

Hi there! call me Ch8n, I'm a mobile technology enthusiast! love Android #kotlinAlltheWay, CodingMantra: #cleanCoder #TDD #SOLID #designpatterns

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.