koin v0.7.1 Release Notes

  • โš  โšก๏ธ This 0.7.x branch brings great simplifications in DSL and API. Users from Koin 0.6.x may check the What's new in 0.7.x guide ๐Ÿ‘

    Kotlin compilation has been updated to 1.1.61

    Core

    • Simplified DSL modules: no more need of Module class. Now use directly the applicationContextfunction
    • 0๏ธโƒฃ Default Koin Logger to PrintLogger instead of EmptyLogger
    • a definition can be overriden (with a definition same name and type)
    • DSL provide aliases with bean and factory
    • ๐Ÿ’… direct interface binding writing style (avoid to use bind keyword)
    • Koin instances resolution is now thread safe and compatible with coroutines
    • ๐Ÿ‘ starter chain reviewed to allow better extension of startKoin()
    • ๐Ÿ‘ better logs to display how instance and reoslution are made
    • 0๏ธโƒฃ Context isolation disabled by default. Can be activitaed later

    Android

    โš  Android ContextAware components have been dropped. Please, check the migration guide

    • 0๏ธโƒฃ Default Koin Logger to AndroidLogger instead of EmptyLogger
    • No need anymore of AndroidModule, just use applicationContext to declare a module
    • ๐Ÿ‘ Android extensions have been reworked to avoid need of support Library
    • androidApplication() is a DSL extension to provide Android Application resolution (can also be done with get<Application>())

    Samples

    • โšก๏ธ Updated Android weather app, with multiple Activity and better demo for property usage
    • Simple Kotlin app sample added