Bump com.google.dagger.hilt.android from 2.46.1 to 2.50
Bumps com.google.dagger.hilt.android from 2.46.1 to 2.50.
Release notes
Sourced from com.google.dagger.hilt.android's releases.
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.
Bug fixes:
- Fixed #4046, #4140: Fixes
Unexpected elementerror in when calculating nullability (4593c0a)- Fixed #4096: Fix type names for inline types on the KSP side (aosp/2789273)
- Build-time performance improvements (85e9ff1) and (d9d0a8e).
- Fixed #4060: Updated KSP to
1.9.20-1.0.14which should contain the fix for a number of incremental processing issues related to KSP (692015f).Hilt
New features:
- Fixed google/dagger#2287, #3523: Add support for using
@AssistedInjectwith@HiltViewModel. (8327177). For more details visit https://dagger.dev/hilt/view-model#assisted-injection.- Hilt now provides
@ActivityRetainedSavedState SavedStateHandlefromActivityRetainedComponent(1cac33b). Note: This feature relies on a somewhat experimental implementation in order to provide this binding lazily while also avoiding leaking the activity. The laziness is a requirement to not restrict activity injection and also to avoid bloating the saved state when unused. While we predict this should be safe to rely on, if issues are discovered with this implementation, it is possible that a future release may have to remove this binding.Bug fixes:
... (truncated)
Commits
137995b2.50 release8d01223Fix error message for an@Binds @IntoSetimplementation with duplicate bind...be77d24Dagger build performance optimizations.8372c63Flip the default for explicitBindingConflictsWithInject to enabled.13d64c6Internal changes5f8b76cOptimizeInjectionSiteFactory#getInjectionSites().45af1edIncrease timeout for emulator tests from 25min to 35min in CI.45d3b87MakeminSdkandtargetSdkversions consistent across Gradle tests.f4b4519Internal changeseb9a034Configure Bazel and Gradle to avoid spurious flakes.- 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)