DaggerAndroidKotlinExample

A minimal setup for using dagger-android with Kotlin to setup application wide and activity wide dependencies.

Stars
15
Committers
1

DaggerAndroidKotlinExample

About this repo

  • A minimal setup for using dagger-android with Kotlin to setup application wide and activity wide dependencies can be found in the master branch.
  • Check my blog for more details

How to test

  • See the withTest branch
  • A repo for demo how to mock the dagger-android injection when doing Espresso instrumented test.
  • Check my blog for more details

A good start

If you feel this setup is overwhelming, do check the below one with plain dagger 2, should be much simpler:

Related Projects