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 theapplicationContext
function - 0๏ธโฃ Default Koin Logger to
PrintLogger
instead ofEmptyLogger
- a definition can be overriden (with a definition same name and type)
- DSL
provide
aliases withbean
andfactory
- ๐
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 ofEmptyLogger
- No need anymore of
AndroidModule
, just useapplicationContext
to declare a module - ๐ Android extensions have been reworked to avoid need of support Library
androidApplication()
is a DSL extension to provide AndroidApplication
resolution (can also be done withget<Application>()
)
Samples
- โก๏ธ Updated Android weather app, with multiple Activity and better demo for property usage
- Simple Kotlin app sample added
- Simplified DSL modules: no more need of