*Inara*: compile-time dependency injection for Kot...
# feed
s
Inara: compile-time dependency injection for Kotlin Multiplatform. It is a KSP processor that generates a thin layer of interface-based modules. Annotate an interface with
@DIModule
and you get a constructor function that takes bindings (
single
,
provider
,
value
), so a test just passes a mock binding.
@DIFactory
builds your classes from a module, which they never see. Also: suspend bindings, composable modules, per-module scoping. No runtime graph resolution, no global or mutable modules. https://kodein-koders.com/en/blog/inara-inject-your-dependencies-at-compile-time/
🔥 2