Releases: kosi-libs/Kodein
Releases · kosi-libs/Kodein
7.13.1
7.13.0
7.12.0
-
CORE
- Kotlin
1.6.21
- Constructor reference based binding (#408 thanks to @rocketraman)
DI { bindSingleton { new(::PersonService) } }
- Delegate binding (#406)
DI { bindSingleton { Cls() } delegate<Cls>().to<Cls>() }
- Create modules with delegate (#393)
val myModule by Module { // implicitly named "myModule" bind { singleton { Cls() } } }
- Kotlin
-
KTOR
- Moved to
2.0
: This has no impact for you, all the breaking changes are internals.
- Moved to
-
COMPOSE
- Upgrade to
1.2.0-alpha01-dev683
- Upgrade to
-
EXTENSION:
-
Documentation fixes
7.11.0
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)