Skip to content

Dagger 2.44

Compare
Choose a tag to compare
@bcorso bcorso released this 21 Sep 20:00
· 401 commits to master since this release

What’s new In Dagger

Potentially breaking changes

  • Fixes #3531: Removed formatting from dagger.android generated source could be a breaking change for anyone relying on golden files for Dagger’s generated code. (d123efd)

Bug Fixes

  • Fixes #3522: Avoids pre-validating the nearest enclosing type in the InjectProcessingStep. (1d74d1f)

What’s new in Hilt

Potentially breaking changes

  • Added ViewModelLifecycle. This can be injected in the ViewModelComponent and used to register listeners for when ViewModel#onCleared() is called. This change also includes a breaking change for anyone who implemented the ActivityRetainedLifecycle interface themselves. This should be rare though as this interface was not meant to be implemented by users. (55aa4c6)

Bug Fixes

  • Fixes #3478: Fixes an issue in Hilt's Gradle Plugin not configuring the aggregating task correctly on a com.android.test Gradle module. (ea39850)