evant / kotlin-inject

Dependency injection lib for kotlin
Apache License 2.0
1.14k stars 51 forks source link

Implement SAM support for assisted injection #341

Open dellisd opened 5 months ago

dellisd commented 5 months ago

Closes #243

It might be a bit messy, but it effectively maps it to a special function type for code generation.

evant commented 5 months ago

Thanks for the pr! There's some api design decisions that need to be made before fully committing to this (see https://github.com/evant/kotlin-inject/issues/261 and https://github.com/evant/kotlin-inject/issues/252) so it'll take some time to review, but I'll take this as a starting point.