Skip to content

v2.4.5

Compare
Choose a tag to compare
@github-actions github-actions released this 06 Apr 23:20
· 522 commits to main since this release

Changed

  • Raise minimum Kotlin version to 1.8.20.
  • Raise minimum AGP version to 7.1.0.
  • The Kotlin Gradle Plugin (both the core plugin and the API artifact) are no longer a dependency of the Anvil Gradle Plugin. Instead, it's now a compileOnly dependency, allowing the plugin to defer to whatever version the user already has. If you were accidentally depending on KGP through Anvil, you'll need to explicitly add the plugin yourself now.

Removed

  • Support for the old compiler backend. The Java stub generating task uses the new backend by default since Kotlin 1.8.20.

Fixed

  • Fix duplicate generated binding method names. If a class contributes multiple bindings and the bound types have the same short name, then Anvil would generate methods with duplicate names that clash in the end.
  • Support Any as bound type when using @ContributesBinding or @ContributesMultibinding, see #680.

Custom Code Generator

  • Add option to change the JVM target when testing code generators with the custom AnvilCompilation class, see #682.