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 whenViewModel#onCleared()
is called. This change also includes a breaking change for anyone who implemented theActivityRetainedLifecycle
interface themselves. This should be rare though as this interface was not meant to be implemented by users. (55aa4c6)