Koin 0.8.2 — Improvements, Bugfixes and crash fix
Hi Koin users :) We begin this month of February with some cool improvements and bug fixes thanks to your feedback. At the agenda of this last release: core fixes, android-architecture and spark feature upgrades!
In koin-android-architecture you can now easily setup your ViewModel in your Activity or Fragment in a lazy manner with “by getViewModel()” :
This declaration style allows you to easily share your ViewModel between Activity and Fragment:
Be default, ViewModel declared in Fragment will try to reuse one from parent Activity.
The module uses now the android.arch.lifecycle:extensions in version 1.1.0
In the `koin-spark` module, we have merged the start() function with Koin start. Now we have a more compact syntax:
The stop() function also include the closeKoin().
Under the hood, the koin-core module has been fixed for several issues :
The website reference documentation has been completed. Check it here https://insert-koin.io/docs/1.0/reference/
The last news updates are also available from our website: https://insert-koin.io/docs/1.0/updates/
I’m currently writing an Android developer guide to help you daily develop with Koin (recipes, strategies, architecture guides …).
Thanks for your feedback and help :) Hope you’ll enjoy this release!
Stay tuned 👍