Skip to content

Releases: square/anvil

v2.2.0

17 Mar 21:15
Compare
Choose a tag to compare
  • @ContributesBinding supports qualifiers now, see the README and documentation for examples.
  • You can generate multibindings with @ContributesMultibinding now, see the README and documentation for examples, see #152.
  • Upgrade Dagger to 2.32. Generating factories for assisted injection is no longer compatible with older Dagger versions due to the behavior change in Dagger itself. Make sure to use Dagger version 2.32 or newer in your project, too.
  • @ContributesBinding has a priority field now for cases where you don't have access to replaced bindings at compile time, see #161.
  • Use the mangled function name to generate the factory for a provider method.
  • Handle fully qualified names with type parameters for Dagger factories properly, see #198.
  • Support classes in the root package and don't crash, see #227.

v2.1.0

05 Feb 21:09
Compare
Choose a tag to compare
  • This release upgrades Anvil to Kotlin 1.4.30. Older Kotlin versions are no longer supported moving forward.
  • The IR extension is enabled by default. Anvil is compatible with the new IR and old compiler backend.

v2.0.14

05 Feb 01:51
Compare
Choose a tag to compare
  • Anvil falsely detected provider methods inside of companion objects of interfaces as abstracted, see #187.
  • Support nullable parameters for assisted injection properly, see #189.

v2.0.13

04 Feb 21:47
Compare
Choose a tag to compare
  • Please use version 2.0.14. This release accidentally used a Kotlin preview version.

v2.0.12

03 Feb 04:08
Compare
Choose a tag to compare
  • Support Dagger's assisted injection feature and generate necessary code, see #165.
  • Throw an error if a provider method is abstract, see #183.

v2.0.11

29 Dec 03:43
Compare
Choose a tag to compare
  • Declare the Dagger Factory generation option as stable.
  • Support a mode that only generates Dagger Factories through the generateDaggerFactoriesOnly flag, see #164.
  • Suppress any deprecation warnings in generated code, see #169.

v2.0.10

21 Nov 01:23
Compare
Choose a tag to compare
  • Upgrade Kotlin to 1.4.20. Note that this version no longer works with Kotlin 1.4.10 or older, see #159.

v2.0.9

20 Nov 22:42
Compare
Choose a tag to compare
  • Upgrade Kotlin to 1.4.10. Note that this release is not compatible with Kotlin 1.4.20.
  • Remove the usage of the now deprecated KotlinGradleSubplugin class, see #30.
  • Enable Kotlin's explicit API mode in the :annotations artifact.

v2.0.8

12 Nov 20:26
Compare
Choose a tag to compare
  • Support Kotlin's explicit API mode in generated code, see #144.
  • Handle packages starting with an uppercase letter properly, see #150.
  • Use the correct import if an uppercase function is imported with the same name as the type, see #154.
  • Support properties as providers in Dagger modules, see #149.

v2.0.7

12 Nov 19:20
Compare
Choose a tag to compare
  • DO NOT USE! This version was compiled with the wrong Kotlin version.