Painless Kotlin Dependency Injection
MIT License
Bot releases are visible (Hide)
Published by romainbsl over 2 years ago
rememberDI
Composable functionrememberX
functions` behaviorPublished by romainbsl almost 3 years ago
Published by romainbsl almost 3 years ago
Published by romainbsl about 3 years ago
Published by romainbsl about 3 years ago
ViewModel
retrieval with ease (thanks to @carltonwhitehead for his contribution).
kodein-di-framework-android-x-viewmodel
: Injection and retrieval of plain View Models with by viewModel()
delegate.kodein-di-framework-android-x-viewmodel-savedstate
: Injection and retrieval of View Models with SavedStateHandle with by viewModelWithSavedStateHandle()
delegate.kodein-di-framework-compose
module is now align with the stable version of Compose compiler (compatible with Kotlin 1.5.21)Published by romainbsl over 3 years ago
Published by romainbsl over 3 years ago
Published by romainbsl over 3 years ago
bind(tag: Any?, overrides: Boolean?, createBinding: () -> DIBinding)
bind { singleton { Person("Romain") } }
is equivalent to bind() from singleton { Person("Romain") }
bind<IPerson> { singleton { Person("Romain") } }
is equivalent to bind<IPerson>() with singleton { Person("Romain") }
bind { scoped(SessionScope).singleton { Person("Romain") } }
is equivalent to bind() with scoped(SessionScope).singleton { Person("Romain") }
bindFactory
/ bindProvider
/ bindSingleton
/ bindMultiton
/ bindInstance
/ bindConstant
bindSingleton { Person("Romain") }
is equivalent to bind() from singleton { Person("Romain") }
bindSingleton<IPerson> { Person("Romain") }
is equivalent to bind<IPerson>() with singleton { Person("Romain") }
di()
in favor of closestDI()
to avoid import conflictsdi()
in favor of closestDI()
to avoid import conflictsPublished by romainbsl over 3 years ago
Published by romainbsl over 3 years ago
Enable new JS IR backend
Published by romainbsl over 3 years ago
Published by romainbsl almost 4 years ago
Published by romainbsl about 4 years ago
DOCUMENTATION
CORE
BUILD
DOCUMENTATION
CORE
org.kodein.di.generic-jvm
/ org.kodein.di.erased
combined into org.kodein.di
typeOf
to handle generics, for non JVM targets only.org.kodein.di.generic
, org.kodein.di.erased
.FRAMEWORKS
DEMOS
BUILD