Releases: amzn/kotlin-inject-anvil
Releases · amzn/kotlin-inject-anvil
0.1.0
0.0.5
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
Fixed
- Allow adding annotations from
:runtime-optional
to property getters and value parameters.
0.0.3
Added
- Added new artifact
:runtime-optional
, which provides access to@SingleIn
,@ForScope
andAppScope
, 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, becausekotlin-inject
doesn't support it.
0.0.2
Added
- Add multi-binding support to
@ContributesBinding
via amultibinding
parameter. - Add
mingwX64()
target to runtime.
0.0.1
- Initial release.