Dagger2 v2.28.2 Release Notes

Release Date: 2020-07-15 // almost 4 years ago
  • What’s new

    Hilt

    πŸš€ The Hilt class dagger.hilt.android.components.ApplicationComponent is being renamed to dagger.hilt.components.SingletonComponent. This release adds the new SingletonComponent class in preparation for this change without removing the existing ApplicationComponent. This rename is part of a plan to address #1908 to allow usage of Hilt in non-Android Gradle modules when installing into the SingletonComponent. Current users can begin switching to the new SingletonComponent name as of this release. A future release will remove ApplicationComponent.

    πŸ› Bug fixes

    Hilt

    • πŸ›  Fix #1980: Added missing FIELD target to @ActivityContext qualifier. (29e080f)
    • πŸ›  Fix #1909: Update Dagger's JavaPoet dependency to 1.13.0 containing fixes for Dagger & Hilt related to generating code with overriding methods without annotations. (c5de4ab)
    • πŸ›  Fix #1955: Fixes issue with bytecode transformation in Gradle plugin to allow @AndroidEntryPoint annotations to be used with abstract classes containing abstract methods. (884fee5)
    • πŸ›  Fix #1947: Fixes issue with Hilt base classes that extend other Hilt base classes. (61c5c43)
    • πŸ›  Fix #1917: Fixes Hilt example app for Gradle users on mac. (5b3a966)