SkillAgentSearch skills...

Dagger2

Kotlin Dagger2 example project

Install / Use

/learn @WeRockStar/Dagger2

README

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
<p align="left"> <img width="300" src="ui-testing.gif" /> </p>

Related Skills

View on GitHub
GitHub Stars171
CategoryDevelopment
Updated4mo ago
Forks42

Languages

Kotlin

Security Score

82/100

Audited on Nov 4, 2025

No findings