Hey everyone.
Kodein 5.0-beta5, the very last beta has been released.
It uses Kotlin/Native 0.6.1, which added a lot of bugfixes to allow Kodein to compile and run correctly on Native.
For the first time, Kodein is unit tested on JVM, JS *and*Native 😄
Also, by popular demand, this beta adds the possibility to have multi-argument factories and multitons (yeah, I read this thread, even though I don't always have the time to answer properly).
Sooooo...
bind<Person>() with factory { firstName: String, lastName: String -> PersonImpl(firstName, lastName) }
is now possible.
You retrieve like this:
val person: Person by instance(arg = M("Salomon", "BRYS"))
As usual, the documentation explains everything 😉
I am now exclusively working on the documentation : Quick start guides, code comments, etc.