Skip to content

0.11.3

Choose a tag to compare

@ZacSweers ZacSweers released this 16 Mar 19:54
· 851 commits to main since this release

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 FirSession instances 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 when enableKClassToClassMapKeyInterop is 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 Logger and graph B also provides Logger (overriding A's), graph C would incorrectly try to get it from A instead of B.
  • [IR]: Fix duplicate binding error in multibindings when multiple contributed containers include the same shared multibinding-contributing container.
  • [IR]: Fix NoSuchFieldError at runtime when sharded graphs access @Includes dependency properties.
  • [IR]: Check parent classes for @Origin annotations 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 @Binds overriding a grandparent's @Provides of the same type).
  • [metrox-viewmodel-compose]: Pass CreationExtras to the createViewModel lamba for assistedMetroViewModel when using ManualViewModelAssistedFactory

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.tracing to 2.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

New Contributors

Full Changelog: 0.11.2...0.11.3