Skip to content

v2.4.4

Compare
Choose a tag to compare
@github-actions github-actions released this 12 Jan 23:51
· 505 commits to main since this release

Added

  • Added support for Kotlin 1.8.

Changed

  • The issue that required disabling precise Java tracking is not needed anymore. The workaround has been removed.

Removed

  • Remove support for Kotlin 1.7. Anvil only supports Kotlin 1.8 moving forward.

Custom Code Generator

  • Add ability to query top-level functions and properties. The entry point is projectFiles.topLevelFunctionReferences(module) and projectFiles.topLevelPropertyReferences(module). This allows you write code generators reacting to top-level functions and properties and not only classes, see #644.
  • The FunctionReference type has been renamed to MemberFunctionReference and a new super type FunctionReference has been introduced for TopLevelFunctionReference and MemberFunctionReference.
  • The PropertyReference type has been renamed to MemberPropertyReference and a new super type PropertyReference has been introduced for TopLevelPropertyReference and MemberPropertyReference.