A minimal setup for using dagger-android with Kotlin to setup application wide and activity wide dependencies.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
app
gradle/wrapper
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

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: