Releases: square/anvil
Releases · square/anvil
v2.3.4
- Upgraded Anvil to Kotlin
1.5.21
. - Properly inject members when property setters are annotated, see #340.
- Properly inject members when using assisted injection, see #342.
- Don't generate a singleton factory (object), if the class with the inject constructor has any type parameter, see #348.
- Look for star imports before checking imports from the Kotlin package. Star imports have a higher priority, see #358.
- Handle the special case of injecting a
Provider<Lazy<Type>>
properly, see #344.
v2.3.3
v2.3.2
- Remove an accidental required dependency on the Android Gradle Plugin, see #323.
- Ensure that excluded bindings and modules are only excluded for the specific component that merges a scope and not all components merging the same scope, see #321.
- Disable precise Java tracking for the stub generating Kotlin compilation task when needed, see #324.
v2.3.1
- Ignore replaced bindings/modules from excluded bindings/modules, see #302.
- Create separate Anvil configurations for each build type, see #307.
- Introduce a new VariantFilter for the Gradle extension. This API allows you to enable and disable Anvil for specific variants. Allow to override
generateDaggerFactories
,generateDaggerFactoriesOnly
anddisableComponentMerging
through the variant filter, see #100.
v2.3.0
- Add option to extend Anvil with your own
CodeGenerator
, see here and #265. - Use Gradle Property APIs in the Anvil extension. This is a source-breaking change (but binary-compatible) for Kotlin and .kts consumers of the Anvil Gradle plugin, see #284.
- Upgrade Anvil to Kotlin
1.5.10
. The old legacy compiler backend is still supported and the IR backend not required yet.
v2.2.3
v2.2.2
- Handle inner generic classes in factories for constructor injection properly, see #244.
- Generate a correct factory when a class has both constructor and member injection, see #246.
- Make generated assisted factories match interface function names, see #252.
- Fix a parsing error for inner class reference expressions, see #256.
- Verify that the qualifier is added to generated methods for member injection, see #264.
v2.2.1
v2.2.0
@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 version2.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.