koin v0.9.0 Release Notes

  • DSL

    • ๐Ÿ—„ [DEPRECATED] - provide - can be directly replace with bean
    • โšก๏ธ [UPDATED] - bean and factory can now use bind
    • [ADDED] - defintion function inside bean or factory can now have parameters

    Core

    • ๐Ÿ›  [FIXED] Context resolution and modulePath isolation reworked - now fully functionnal
    • ๐Ÿ›  [FIXED] Stack resolution
    • [ADDED] StandAloneContext function loadKoinModules to load Koin modules whether Koin is already started
    • [ADDED] StandAloneContext function loadProperties to load Koin properties whether Koin is already started
    • [ADDED] by inject() function handle parameters to definition (#59)
    • ๐Ÿ›  [FIXED] Logging with class name need introspection
    • ๐Ÿš€ [ADDED] Context lifecycle notification callback - to allow a callback when releaseContext() is called on a context. You can register with StandAloneContext.registerContextCallBack() (#58)

    Android

    • 0๏ธโƒฃ [FIXED] StartKoin have a logger parameter, with default as AndroidLogger(), to allow specify logging implementation to use with Koin (#50) - allow no logging at startKoin of logger is set to EmptyLogger()
    • [ADDED] by inject() function handle parameters to definition (#49)

    Android Architecture

    • ๐Ÿ›  [FIXED] fix viewModel extensions rewritten from LifecycleOwner interface
    • ๐Ÿ›  [FIXED] fix by viewModel() API to allow use KClass object argument instead of type inference - offers now getViewModelByclass() and viewModelByClass() (#56)
    • [ADDED] by viewModel() function handle parameters to definition (#49)
    • [ADDED] by viewModel() function handle key instance for Android ViewModelFactory (#49)