Kodein v3.0.0-beta2 Release Notes
Release Date: 2016-06-30 // almost 8 years ago-
FEATURES
KodeinInjected
can usekodein()
instead ofinjector.kodein()
.- Android
instanceForContext
that works exactly likeinstanceForClass
, but for aContext
. - Android module, wisely named
androidModule
that provides a lot of factories with aContext
arguments (seeAndroidModule.kt
).
BREAKING CHANGES
typeToken
(and thereforeTypeReference
) will throw an exception when build with aTypeVariable
type argument. This is to prevent "accidental" binding of a type with TypeVariable which will be later impossible to retrieve.
BETA FEATURE CHANGES
instanceForClass
uses JavaClass<*>
andinstanceForKClass
uses KotlinKClass<*>
.