Dagger 2 v2.25.2 Release Notes

Release Date: 2019-10-23 // over 4 years ago
  • Known breaking changes

    • The Kotlin change in 2.ii (below) will break users who were passing in object module
      ๐Ÿ— instances into a Component builder method rather than using @JvmStatic.
      ๐Ÿ— To fix this issue, remove the call to the builder method -- the module instance is
      ๐Ÿ— no longer needed and the Component builder method will no longer be generated.

    What's new

    ๐Ÿ› Bug fixes

    1. Fix duplicate missing binding error messages. (2411074)
    2. Fix dagger-spi pom file from dependency cycle. (3699697)
    3. Fix issue with missing shaded deps from release 2.25 (efe1b00)

    ๐Ÿ‘ Kotlin support

    1. Qualifier annotations on fields can now be understood without
      The need for @field:MyQualifier (646e033)
    2. @Module object classes no longer need @JvmStatic on the
      provides methods. (0da2180)

    ๐ŸŽ Performance Improvements

    1. Build performance:
    2. Runtime performance:
      • _Factory proxy methods can now be accessed without
        class loading the factory (a258d37).