github google/dagger dagger-2.28
Dagger 2.28

latest releases: dagger-2.52, dagger-2.51.1, dagger-2.51...
4 years ago

What's New

Hilt Alpha Release

Hilt is a new library that layers on top of Dagger and provides a standard way to incorporate Dagger into an Android application. For more information, see https://dagger.dev/hilt.

Lint checks in Dagger for Kotlin (2597f5a)

Dagger now includes Lint checks for Kotlin users. The checks cover the following cases:

  • Using a redundant field: site target in injected properties
  • Using a redundant @JvmStatic in object modules.
  • Annotating companion objects with @Module (@Module should just be on the enclosing class)

These checks are included by default for users of dagger-android and hilt-android. For Kotlin only projects the checks are available in a new artifact, com.google.dagger:dagger-lint:<version> and can be applied via the lintChecks configuration in Gradle:

apply plugin: "com.android.lint"

dependencies {
  lintChecks "com.google.dagger:dagger-lint:<version>"
}

Bug Fixes

  • Fixes #1812: Fix deploy script for Mac by updating bazel-common containing a fix in the jarjar macro. (11c86ec)
  • Fixes #1693: Gracefully handle @kotlin.Metadata produced by Kotlin compiler versions earlier than 1.3. (477d052)
  • Fixes #1805: Add custom lint checks to Dagger (2597f5a)
  • Fixes #1769: Minor fixes to error messages (8e29da2)

Don't miss a new dagger release

NewReleases is sending notifications on new releases.