weather_compose_clean_architecture
weather_compose_clean_architecture copied to clipboard
Bump com.google.dagger.hilt.android from 2.48.1 to 2.51
Bumps com.google.dagger.hilt.android from 2.48.1 to 2.51.
Release notes
Sourced from com.google.dagger.hilt.android's releases.
Dagger 2.51
New Dagger Features
- Added a
@LazyClassKeyannotation that supports using class names as a map key. Unlike the existing@ClassKey, the map generated by@LazyClassKeywon’t eagerly load all of the classes for the keys. This can be useful in situations or environments where classloading can be expensive, such as on Android. For more information, see https://dagger.dev/dev-guide/multibindingsPotential breaking changes
- Protected fields using
@Injectare now banned in Kotlin classes. This is because Kotlin protected fields are not accessible by code in the same package, unlike Java. This has been working up to this point because Dagger generates Java code, but that is unintentional and would break if Dagger switched to generate Kotlin code.(408431a3b)New Hilt Features
- Fixed #3197: Used the new
@LazyClassKeyDagger feature to remove the keep rule for@HiltViewModelclass names. This allows obfuscation of@HiltViewModelannotated ViewModel class names with R8. (0786d0af5)- Added
@SkipTestInjectionwhich can be used for skipping test injection in Hilt Android tests, which may be useful if building separate custom test infrastructure to inject the test class from another Hilt component. (c40811e71)Dagger bug fixes
- Improve Dagger MissingBinding error messages to give more information and be more consistent. (c8722386a)
- Fixed #4201: Suppress warning for casting in Dagger generated code. (813ffced8)
- Fixed #4203: Removes
@Deprecatedannotation causing warnings (3cbc94ad3)- Fixed #4199: Support member injections from type aliased superclass (662d82359)
- Complete Ksp support for Dagger Android: Added a Ksp Processor for Dagger Android ProguardProcessor that was previously missed. The ProguardProcessor is a Dagger Android implementation detail that makes sure the AndroidInjector works correctly when shrinking tools obfuscate
@ContributesAndroidInjectorannotated injector class names. (e71de27a1)Dagger 2.50
Dagger
Potential breaking changes
- Introduced a new
dagger.internal.Providerto facilitate future support forjakarta.inject.Providertypes. There should be no visible changes at this time, though with such a large change there is a risk of unanticipated version compatibility issues across libraries built with different Dagger versions. (75d3cbcf9)- Flip the default for
-Adagger.explicitBindingConflictsWithInjectto enabled. This flag fixes a bug where an explicit binding like an@Providesshould conflict with@Injectbindings if the@Injectis actually used in a parent component. (8372c6308)Bug fixes
- Fixed the error message for an
@Binds @IntoSetimplementation with duplicate bindings. (8d0122322)Dagger 2.49
Dagger
New features:
- Fixed #4044: Add support for KSP with
dagger.android(832717767).Potential breaking changes:
Dagger’s generated component no longer contains deprecated no-op module setter methods for modules that have only
static/abstract@Provides/@Bindsmethods (ed47d4b88).Note: If you hit this issue, the fix is to remove the call to the setter method in your code. For example:
MyComponent component = DaggerMyComponent.builder() - .moduleWithOnlyStaticOrAbstractMethods(new ModuleWithOnlyStaticOrAbstractMethods()) .build();These setter methods were already no-ops (i.e. Dagger just ignored them), so removing it should not cause any functional changes.
... (truncated)
Commits
c6c0b8a2.51 release0786d0aAllow obfuscating@HiltViewModelannotated ViewModel name with r8.c5075dfRemove kitkat-specific test.c40811eAdd a SkipTestInjection annotation to disable injecting the test class. This ...02d62d6ReplaceprocessingEnv.requireTypeElement()with `DaggerSuperficialValidatio...c872238Improve Dagger error messages to give more information and be more consistent.7ac1dccInternal changes09e5ac2Include proguard rules in dagger core artifact so that LazyClassKeyMap's stri...348bd75Rename proguard_specs attribute for gen_maven_artifact to reflect how it will...d7a55beMigrate usages ofTruth8.assertThatto equivalent usages of `Truth.assertTh...- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)