Download Latest Version v0.8.0 source code.tar.gz (178.9 kB)
Email in envelope

Get an email when there's a new version of kotlin-inject

Home / v0.8.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-04-27 751 Bytes
v0.8.0 source code.tar.gz 2025-04-27 178.9 kB
v0.8.0 source code.zip 2025-04-27 314.8 kB
Totals: 3 Items   494.4 kB 1

0.8.0 - 2025-04-27

Changed

  • Kotlin updated to 2.1.20

Fixed

  • Will now error when a child and parent components provide a binding for the same type.

Added

  • Added mingwX64 target for windows
  • KSP2 support
  • You can now use @AssistedFactory to annotate an interface that creates an instance of a type. This factory can be used in place of a lambda when injecting. This can be useful because an explicit interface can have named and default parameters. ex: ```kotlin @Inject class Foo(@Assisted arg: String)

@AssistedFactory interface CreateFoo { fun create(arg: String): Foo }

@Inject class Bar(fooFactory: CreateFoo) ```

Source: README.md, updated 2025-04-27