koin v2.2.0 Release Notes
-
koin-androidx-scope
[ADDED]
NewScopeActivity
.ScopeFragment
,ScopeService
to enable Scope API direclty into Android components. Offers injection directly from tied Scope.- ๐
[BREAKING]
Old Scope API extensions are deprecated:scope
,lifecycleScope
koin-android-scope
[ADDED]
NewScopeActivity
.ScopeFragment
,ScopeService
to enable Scope API direclty into Android components. Offers injection directly from tied Scope.- ๐
[BREAKING]
Old Scope API extensions are deprecated:scope
,lifecycleScope
koin-androidx-viewmodel
[ADDED]
NewViewModelOwnerDefinition
API definition for lazy define ViewModelStore & SavedStateRegistryOwner- ๐
[BREAKING]
rewrite ViewModel API to better use StateViewModel factory and allow to useViewModelOwnerDefinition = () -> ViewModelOwner
ViewModelOwner lazy definition. Bundle is now used asstate
lazy attributes,BundleDefinition = () -> Bundle
[ADDED]
verification to help check parameter injection for SavedStateRegistryOwner, as the right argument (misplaced injection param)[ADDED]
NewViewModelOwnerDefinition
API definition for lazy define ViewModelStore & SavedStateRegistryOwner- ๐
[BREAKING]
rewrite ViewModel API to better use StateViewModel factory and allow to useViewModelOwnerDefinition = () -> ViewModelOwner
ViewModelOwner lazy definition. Bundle is now used asstate
lazy attributes,BundleDefinition = () -> Bundle
[ADDED]
verification to help check parameter injection for SavedStateRegistryOwner, as the right argument (misplaced injection param)
koin-android-viewmodel
[ADDED]
NewViewModelOwnerDefinition
API definition for lazy define ViewModelStore[BREAKING]
rewrite ViewModel API and allow to useViewModelOwnerDefinition = () -> ViewModelOwner
ViewModelOwner lazy definition[ADDED]
NewViewModelOwnerDefinition
API definition for lazy define ViewModelStore[BREAKING]
rewrite ViewModel API and allow to useViewModelOwnerDefinition = () -> ViewModelOwner
ViewModelOwner lazy definition
koin-core
- ๐
[FIXED]
fixed time API - Kotlin 1.4 - ๐
[ADDED]
NewKoinScopeComponent
to help build component with Koin scopes - ๐
[REMOVED]
removed generic Scope API extensions, was preivously on any class. Please use nowKoinScopeComponent
- ๐
[DEPRECATED]
KoinContextHandler in favor of GlobalContext - ๐
[ADDED]
Better Definition to help further Kotlin Compiler Plugin, simplify Module loading process (API to help declare definition without DSL) - ๐
[REMOVED]
ScopeDefinition internal from module, and prefer qualifier to avoid create stucture outside of registry - ๐
[REMOVED]
removed inconsistent synchronized calls - ๐
[ADDED]
cleaned synchronized API - better call from GlobalContext to ensure synced call [BREAKING]
empty scope is not taken in account anymore, a scope definition is created only if there is at least one scoped definition- ๐
[ADDED]
Injection parameters can be used directly as a dependency and can be resolved asget()
or directly with builder API - ๐
[FIXED]
fixed starting context effect (deprecating KoinContextHanlder for GlobalContext)
โ koin-test
- ๐คก
[FIXED]
fixed checkModules to use Mock for injected parameters or default origin value of a Scope [ADDED]
setup detault values for injected parameters, for checkModules- ๐
[BREAKING]
AutoCloseKoinTest
is now an interface, please remove any constructor - โก๏ธ
[UPDATED]
fixedDefinitionParameters
to add the ability to know the injected type value
โ koin-test-junit5
- โ
[ADDED]
JUnit5 test module