Kodein v7.5.0 Release Notes
Release Date: 2020-03-30 // almost 4 years ago-
- 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).
- CORE