Skip to content

Releases: vRallev/kotlin-inject-anvil

0.1.7

Choose a tag to compare

@github-actions github-actions released this 27 Jan 17:39

Added

  • Add mingwX64 target to runtime and runtime-optional artifacts.

Changed

  • No longer test KSP1.
  • Update to kotlin-inject 0.9.0.
  • Update to Kotlin 2.2.20.
  • Update to KotlinPoet 2.2.0.

Other Notes & Contributions

Thanks to @ZacSweers for contributing to this release!

0.1.6

Choose a tag to compare

@github-actions github-actions released this 27 May 21:27

Changed

0.1.5

Choose a tag to compare

@github-actions github-actions released this 08 May 21:16

Changed

0.1.4

Choose a tag to compare

@github-actions github-actions released this 17 Apr 04:31

Changed

  • Upgraded KSP to 2.1.20-2.0.0, where KSP2 becomes the default. This project is still tested with KSP1 and KSP2.

0.1.3

Choose a tag to compare

@github-actions github-actions released this 03 Apr 00:24

Added

  • Added support for assisted injection with @ContributesBinding, see #92.

Changed

  • Upgraded Kotlin to 2.1.20 and KSP to 2.1.20-1.0.32.

0.1.2

Choose a tag to compare

@github-actions github-actions released this 23 Dec 17:58

Added

  • Support replaces attribute in @ContributesBinding and @ContributesTo, see #79.

Changed

  • Upgraded Kotlin to 2.1.0 and KSP to 2.1.0-1.0.29.

0.1.1

Choose a tag to compare

@github-actions github-actions released this 22 Nov 01:09

Added

  • Allow @MergeComponents to be public, internal, or protected, see #77.

Changed

  • Upgraded the KSP to Kotlin 2.0.21-1.0.28.

Fixed

  • Add an override modifier if a subcomponent factory parameter matches a property in the subcomponent, see #75.
  • Add a companion object to generated KotlinInjectComponent classes, see #74.
  • Copy all annotations from expect fun functions annotated with @CreateComponent to the generated actual fun functions to avoid a Kotlin compiler warning, see #72.
  • Support component parameters for components annotated with @MergeComponent, see #76.

0.1.0

Choose a tag to compare

@github-actions github-actions released this 04 Nov 23:30

Added

  • Provide option to hide the merged interface and make it no longer required to add the super type, see #8.
  • Support expect / actual for generated factory functions using @CreateComponent, see #20.

Changed

  • Upgraded the project to Kotlin 2.0.21.

Fixed

  • Support qualifiers on the factory functions when contributing subcomponents and don't silently drop them, see #58.
  • Generate binding method for subcomponent factory, see #49.
  • Update module name for KLib for common sources, see #63.

0.0.5

Choose a tag to compare

@github-actions github-actions released this 07 Oct 20:45

Changed

  • BREAKING CHANGE: Enforce scope parameter on all @Contributes* annotations and stop using the kotlin-inject scope implicitly, see #36.
  • Made the generated property when using @ContributingAnnotation private. There is no reason to expose the property on the compile classpath.
  • Support excluding contributions from custom annotations as long as they have the @Origin annotation added to generated code.

Fixed

  • Allow adding annotations from :runtime-optional to abstract properties.

0.0.4

Choose a tag to compare

@github-actions github-actions released this 16 Sep 23:18

Fixed

  • Allow adding annotations from :runtime-optional to property getters and value parameters.