Releases: kosi-libs/Kodein
Releases · kosi-libs/Kodein
7.10.0
7.9.0
7.8.0
7.7.0
- CORE
- Kotlin 1.5.21
- ANDROID
- 2 new modules have been created to support
ViewModel
retrieval with ease (thanks to @carltonwhitehead for his contribution).kodein-di-framework-android-x-viewmodel
: Injection and retrieval of plain View Models withby viewModel()
delegate.kodein-di-framework-android-x-viewmodel-savedstate
: Injection and retrieval of View Models with SavedStateHandle withby viewModelWithSavedStateHandle()
delegate.- See documentation here.
- 2 new modules have been created to support
- COMPOSE:
kodein-di-framework-compose
module is now align with the stable version of Compose compiler (compatible with Kotlin 1.5.21)
7.5.1
7.6.0
7.5.0
- CORE
- Direct binding by adding
bind(tag: Any?, overrides: Boolean?, createBinding: () -> DIBinding)
bind { singleton { Person("Romain") } }
is equivalent tobind() from singleton { Person("Romain") }
bind<IPerson> { singleton { Person("Romain") } }
is equivalent tobind<IPerson>() with singleton { Person("Romain") }
bind { scoped(SessionScope).singleton { Person("Romain") } }
is equivalent tobind() with scoped(SessionScope).singleton { Person("Romain") }
- etc.
- Simplified binding APIs
bindFactory
/bindProvider
/bindSingleton
/bindMultiton
/bindInstance
/bindConstant
bindSingleton { Person("Romain") }
is equivalent tobind() from singleton { Person("Romain") }
bindSingleton<IPerson> { Person("Romain") }
is equivalent tobind<IPerson>() with singleton { Person("Romain") }
- etc.
- Documentation
- Direct binding by adding
- FRAMEWORK
- Adding Compose support for both Android (Jetpack) and Desktop (JetBrains).
- Android
- Deprecate functions
di()
in favor ofclosestDI()
to avoid import conflicts
- Deprecate functions
- Ktor
- Deprecate functions
di()
in favor ofclosestDI()
to avoid import conflicts
- Deprecate functions