Skip to content

0.5.1

Choose a tag to compare

@ZacSweers ZacSweers released this 18 Jul 16:22
· 1928 commits to main since this release
  • Breaking change: Rename the generateHintProperties Gradle DSL property to generateContributionHints.
  • Enhancement: Chunk field initializers and constructor statements across multiple init functions to avoid MethodTooLargeException in large graphs. This is currently experimental and gated behind the chunkFieldInits() 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 warnOnInjectAnnotationPlacement to disable suggestion to lift @Inject to class when there is only one constructor, the warning applies to constructors with params too.
  • Fix: Fix @Contributes*.replaces not 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

Full Changelog: 0.5.0...0.5.1