0.5.1
- Breaking change: Rename the
generateHintPropertiesGradle DSL property togenerateContributionHints. - Enhancement: Chunk field initializers and constructor statements across multiple init functions to avoid
MethodTooLargeExceptionin large graphs. This is currently experimental and gated behind thechunkFieldInits()Gradle DSL. - Enhancement: Mark generated factories and member injectors' constructors as
private, matching the same change in Dagger 2.57. - Enhancement: Add a new Metro option
warnOnInjectAnnotationPlacementto disable suggestion to lift@Injectto class when there is only one constructor, the warning applies to constructors with params too. - Fix: Fix
@Contributes*.replacesnot working if the contributed type is in the same compilation but a different file. - Fix: Fix generated
MembersInjector.create()return types' generic argument to use the target class. - Fix: Don't generated nested MetroContribution classes for binding containers.
- Fix: Fix contributing binding containers across compilations.
Special thanks to @kevinguitar and @ChristianKatzmann for contributing to this release!
What's Changed
- Update plugin mavenPublish to v0.34.0 by @renovate[bot] in #711
- Add regression test for #712 by @ZacSweers in #715
- Chunk field initialization by @ZacSweers in #716
- Fix package-lock in samples by @ZacSweers in #717
- Various compiler cleanups by @ZacSweers in #718
- Update plugin com.gradle.develocity to v4.1 by @renovate[bot] in #720
- Improvements to regen by @ZacSweers in #719
- Implement ContributionHintFirGenerator by @ZacSweers in #722
- Fix chunking creator params by @ZacSweers in #724
- Fix typo in
platformCanGenerateContributionHintsby @ChristianKatzmann in #727 - Update dependency io.github.classgraph:classgraph to v4.8.181 by @renovate[bot] in #726
- Update dagger to v2.57 by @renovate[bot] in #731
- Update dependency androidx.navigation:navigation-compose to v2.9.2 by @renovate[bot] in #730
- Update dependency androidx.lifecycle:lifecycle-runtime-compose to v2.9.2 by @renovate[bot] in #728
- Add a new Metro option
warnOnInjectAnnotationPlacementby @kevinguitar in #723 - Update dependency androidx.lifecycle:lifecycle-viewmodel-ktx to v2.9.2 by @renovate[bot] in #729
- Mark factory/member injector constructors private by @ZacSweers in #735
- Try regenerating package lock again by @ZacSweers in #737
- Manually resolve replaces in other files by @ZacSweers in #736
- Fix contributing binding containers across compilations by @ZacSweers in #738
- Small chunking work by @ZacSweers in #740
Full Changelog: 0.5.0...0.5.1