Skip to content

WeRockStar/Dagger2

Repository files navigation

Google Dagger 2 (Demo)

Build Status codecov

Production code drive by Testing :)

Fully static, compile-time dependency injection framework for both Java and Android.

Configuration

build.gradle application module level
dependencies {
    ...
    implementation 'com.google.dagger:dagger:2.9'
    kapt 'com.google.dagger:dagger-compiler:2.9'
}

You can use libraries or tools.

  • RxJava2, RxAndroid2
  • Retrofit, OkHttp, OkHttp logging
  • Gson
  • Dagger 2

Testing framework

  • Junit
  • Mockito
  • Jacoco (Test coverage)
  • Espresso (UI Testing from Google)

CI Tools

  • Circle CI
  • Travis CI

Run UI-Test (Espresso)

./gradlew connectAndroidTest