koin v0.8.0 Release Notes

  • Introducing new modules: koin-spark and koin-android-architecture

    Android Architecture

    • viewModel DSL keyword (specialized provide alias for ViewModel), to declare an Architecture Components ViewModel
    • getViewModel() function in Activities and Fragments, to get and bind ViewModel components

    Spark

    • controller {} DSL keyword (specialized provide alias), to declare Spark controllers classes
    • start() {} function to start Spark server (optional port number) - lambda expression to allow the start of Koin and any controller instantiation
    • runControllers() function to instantiate all spark controllers, declared with controller keyword DSL

    Core

    • ๐Ÿ‘ Better logging and error display
    • ๐Ÿ›  Some fixes about internals resolution for bound types