Skip to content

Releases: amzn/kotlin-inject-anvil

0.1.0

04 Nov 23:30
Compare
Choose a tag to compare

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

07 Oct 20:45
Compare
Choose a tag to compare

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

16 Sep 23:18
Compare
Choose a tag to compare

Fixed

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

0.0.3

13 Sep 21:39
Compare
Choose a tag to compare

Added

  • Added new artifact :runtime-optional, which provides access to @SingleIn, @ForScope and AppScope, see #16.
  • Added support for scopes with parameters, e.g. to support @SingleIn(AppScope::class) and @ContributesTo(AppScope::class), see #1.
  • Allow specifying custom contributing annotations via KSP option instead of using @ContributingAnnotation, see #24.

Changed

  • Updated the documentation and decided to recommend scope references as parameter to contribute and merge types. In other words: we prefer using the @SingleIn(SomeScope::class) annotation and explicitly declaring the scope on the @Contribute*(SomeScope::class) annotations. Support for the old way may go away, see #36.

Removed

  • Removed mingwX64() target, because kotlin-inject doesn't support it.

0.0.2

11 Sep 18:54
Compare
Choose a tag to compare

Added

  • Add multi-binding support to @ContributesBinding via a multibinding parameter.
  • Add mingwX64() target to runtime.

0.0.1

06 Sep 21:33
Compare
Choose a tag to compare
  • Initial release.