0.11.3
Enhancements
- [IR]: When reporting suspicious unused multibindings, include a hint about their use in graph extensions if applicable.
- [interop]: Support
@ContributesBinding(..., multibinding = true)interop with kotlin-inject-anvil.
Fixes
- [FIR]: Don't use a memoizing sequence for all
FirSessioninstances as it seems that the IDE will mutate the underlying source lists in some cases. - [FIR]: Providers can now return instances of classes nested in the same container class.
- [IR]: Fix
Map<Class<*>, V>map key interop in constructor injection paths whenenableKClassToClassMapKeyInteropis enabled. - [IR]: Fix codegen error when a scoped binding in a child graph supersedes the same-typed scoped binding from a parent graph and is used in a grandchild graph's multibinding. Basically, if graph A provides
Loggerand graphBalso providesLogger(overridingA's), graphCwould incorrectly try to get it fromAinstead ofB. - [IR]: Fix duplicate binding error in multibindings when multiple contributed containers include the same shared multibinding-contributing container.
- [IR]: Fix
NoSuchFieldErrorat runtime when sharded graphs access@Includesdependency properties. - [IR]: Check parent classes for
@Originannotations when performing IR-based contribution merging. - [IR]: Fix graph extensions inheriting stale bindings from ancestor graphs when a nearer parent already superseded them (e.g., a child's
@Bindsoverriding a grandparent's@Providesof the same type). - [metrox-viewmodel-compose]: Pass
CreationExtrasto thecreateViewModellamba forassistedMetroViewModelwhen usingManualViewModelAssistedFactory
Changes
- Test Kotlin 2.3.20.
- Note that all the 2.3.20 pre-releases were tested up to this release but are no longer tested after this release.
- Test Android Studio Panda 2
- Test Android Studio Panda 3 canaries
- Update shaded
androidx.tracingto2.0.0-alpha03. - Update shaded Wire dep to
6.0.0.
Contributors
Special thanks to the following contributors for contributing to this release!
What's Changed
- Update poko to v0.21.3 by @renovate[bot] in #1933
- Update plugin spotless to v8.3.0 by @renovate[bot] in #1934
- Update ktor monorepo to v3.4.1 by @renovate[bot] in #1935
- Update dependency com.google.googlejavaformat:google-java-format to v1.35.0 by @renovate[bot] in #1936
- Test Kotlin 2.3.20-RC2 by @ZacSweers in #1937
- Add graph extensions hint to suspicious multibindings diag by @ZacSweers in #1938
- Update dependency mkdocs-material to v9.7.4 by @renovate[bot] in #1940
- Improve ide update testing + add more by @ZacSweers in #1939
- Update IDE version mappings by @ZacSweers in #1943
- Update Gradle to v9.4.0 by @renovate[bot] in #1944
- Update compose.jb to v1.10.2 by @renovate[bot] in #1945
- Update wire to v5.5.1 by @renovate[bot] in #1948
- Update dependency org.jetbrains.androidx.lifecycle:lifecycle-viewmodel-navigation3 to v2.10.0-beta01 by @renovate[bot] in #1946
- Update plugin buildConfig to v6.0.9 by @renovate[bot] in #1949
- Move class and provides factory function generation back to IR by @ZacSweers in #1953
- Update plugin intellijPlatform to v2.12.0 by @renovate[bot] in #1952
- Add a test for #1325 by @ZacSweers in #1958
- Fix: Codegen error when consuming a scoped replacement in a multibinding by @jonamireh in #1957
- Update dependency mike to v2.1.4 by @renovate[bot] in #1959
- Update IDE version mappings by @ZacSweers in #1962
- Update dependency mkdocs-get-deps to v0.2.2 by @renovate[bot] in #1961
- Update dependency mkdocs-material to v9.7.5 by @renovate[bot] in #1963
- Pass creation extras to assistedMetroViewModel for ManualAssistedFactories by @hvisser in #1954
- Update dependency tornado to v6.5.5 [SECURITY] by @renovate[bot] in #1969
- Update dependency androidx.activity:activity-compose to v1.13.0 by @renovate[bot] in #1970
- Update dependency com.squareup.okio:okio to v3.17.0 by @renovate[bot] in #1972
- Update dependency androidx.core:core-ktx to v1.18.0 by @renovate[bot] in #1971
- Update plugin intellijPlatform to v2.13.0 by @renovate[bot] in #1975
- Update dependency androidx.collection:collection to v1.6.0 by @renovate[bot] in #1967
- Fix assisted invoke parameter type wrapping in IR factory by @vRallev in #1966
- Fix IR origin-based replacements in contributed graph extension merging by @vRallev in #1964
- Update dependency androidx.tracing:tracing-wire-desktop to v2.0.0-alpha03 by @renovate[bot] in #1968
- Fix duplicate multibindings error by @tcmulcahy in #1960
- Test 2.3.20-RC3 by @ZacSweers in #1977
- Update IDE version mappings by @ZacSweers in #1978
- Fix NoSuchFieldError when sharded graphs access @includes dependency properties by @vRallev in #1980
- Update dependency cairosvg to v2.9.0 by @renovate[bot] in #1981
- Update wire to v6 (major) by @renovate[bot] in #1982
- Partial zensical support by @ZacSweers in #1983
- Fix
Map<Class<*>, V>interop in constructor injection by @vRallev in #1989 - Update plugin intellijPlatform to v2.13.1 by @renovate[bot] in #1991
- [FIXED] Broken view and edit links on copied files on docs site by @hossain-khan in #1990
- Update plugin shadow to v9.4.0 by @renovate[bot] in #1993
- Fix binding supersession in multi-level graph extensions by @jonamireh in #1992
- 2.3.20 final by @ZacSweers in #1996
- Interop for Kotlin-Inject-Anvil multibinding=true by @scottjasso in #1986
New Contributors
- @hvisser made their first contribution in #1954
- @tcmulcahy made their first contribution in #1960
- @scottjasso made their first contribution in #1986
Full Changelog: 0.11.2...0.11.3