v2.5.0-beta01
Pre-release
Pre-release
github-actions
released this
15 Feb 23:33
·
263 commits
to main
since this release
Added
-
Incremental compilation and build caching fixes (#836)
This feature is disabled by default.
It can be enabled via a Gradle property or the Gradle DSL:Gradle Properties
# default is false com.squareup.anvil.trackSourceFiles=true
Gradle DSL
// build.gradle[.kts] anvil { trackSourceFiles = true // default is false }
-
Configuration options can now be set via Gradle properties (#851)
# ./gradle.properties com.squareup.anvil.addOptionalAnnotations=true com.squareup.anvil.disableComponentMerging=true com.squareup.anvil.generateDaggerFactories=true com.squareup.anvil.generateDaggerFactoriesOnly=true com.squareup.anvil.syncGeneratedSources=true com.squareup.anvil.trackSourceFiles=true
Changed
- Upgrade Kotlin to
1.9.22
(#814) - don't leak Anvil's annotation artifacts to the target project's compile classpath (#822)
- Update to dagger 2.50 (#830)
Removed
- Drop Kotlin 1.8 support (#841)
Custom Code Generator
- The
GeneratedFile
result type has been deprecated in favor ofGeneratedFileWithSources
. This new type allows for precise tracking of the generated files, which in turn drastically improves incremental compilation performance (#693).
Other Notes & Contributions
- Support KSP in ContributesSubcomponentGenerator (#828)