Releases: square/anvil
Releases · square/anvil
v2.3.9
- Add a workaround for AGP to sync generated sources with
syncGeneratedSources, see #413. - Ignore functions with defaults in assisted factories, see #415.
- Use Anvil version
2.3.9-1-6-0-RC2if you want to test Kotlin1.6.0-RC2. Until Anvil hasn't adopted Kotlin1.6I'll publish additional versions that are required due to compiler API incompatibilities. - Use Anvil version
2.3.9-1-6-0if you want to test Kotlin1.6.0. Until Anvil hasn't adopted Kotlin1.6I'll publish additional versions that are required due to compiler API incompatibilities.
v2.3.8
- Add an option in the Anvil DSL
syncGeneratedSourcesto sync generated sources in the IDE, see #412. - Fall back to PSI parsing for
BindingModuleGenerator, see #310. (this allows you generated@ContributesBindingannotations in custom code generators) - Support generic supers for assisted factories when the assisted factory interface is generated, see #407.
- Support generic type resolution in assisted factories, see #395. (regression in previous release)
- Align
TypeNamesfor assisted lambda arguments between descriptors and PSI, see #400. (regression in previous release) - Enable experimental Anvil APIs by default in the compiler testing utilities, see #398.
- Make it easy the feed a compilation result to another Anvil compilation in the testing utilities, see #404.
- Use Anvil version
2.3.8-1-6-0-RC2if you want to test Kotlin1.6.0-RC2. Until Anvil hasn't adopted Kotlin1.6I'll publish additional versions that are required due to compiler API incompatibilities.
v2.3.7
- Allow configuring the
KotlinCompilationwhen using the utilities to test custom code generators, see #386. - Support invariant and covariant type parameters properly, see #388.
- Use Psi parsing for assisted factory generation, see #326.
- Support assisted injection for deeply nested inner classes, see #394.
- Use Anvil version
2.3.7-1-6-0-RCif you want to test Kotlin1.6.0-RC. Until Anvil hasn't adopted Kotlin1.6I'll publish additional versions that are required due to compiler API incompatibilities.
v2.3.6
v2.3.5
- Upgraded Anvil to Kotlin
1.5.31. - Use correct setter name for members in generated factories, see #362.
- Handle the special case of injecting a
Provider<Lazy<Type>>properly for member injection, see #365. - Make sure in JVM modules that the configuration
anvilMainextendsanvilso that code generators are picked up, see #368. - Support member injection for super classes, see #343.
- Prefer Kotlin collection types when Java collections are imported through a star import, see #371.
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,generateDaggerFactoriesOnlyanddisableComponentMergingthrough 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.