koin v0.8.1 Release Notes

  • Android Architecture

    Now declare your ViewModel lazyly in attributes, with by viewModel() like by inject()

    • by viewModel() lazy function call the getViewModel() function and allow val attribute declaration of your ViewModel (like with by inject()) - (issue #37)
    • ๐Ÿ‘ Better support to share ViewModel between Activity and Fragments
    • โšก๏ธ android.arch.lifecycle:extensions updated to 1.1.0

    Spark

    start and startKoin functions have been merged

    • startSpark {} has been renamed to start {} and have a modules arguments to list all of your modules
    • ๐Ÿ”€ start() and startKoin has been merged to start( modules = <List of modules>)
    • stopSpark{} has been renamed to stop {} and include closeKoin()

    Core

    • Kotlin 1.2.21
    • ๐Ÿ›  Internal fixes around Bean definition lookup / Duplicated defintion (issue #39)
    • ๐Ÿ›  Fixed loading from koin.properties (for embedded jar)