Skip to content

Update dependency io.insert-koin:koin-android to v3.3.0

RenovateBot requested to merge renovate/io.insert-koin-koin-android-3.x into develop

This MR contains the following updates:

Package Type Update Change
io.insert-koin:koin-android (source) dependencies minor 3.1.2 -> 3.3.0

Release Notes

InsertKoinIO/koin

v3.3.0

[koin-android]

  • [UPDATED] - lib update - androidx.appcompat:appcompat:1.5.1
  • [UPDATED] - lib update - androidx.activity:activity-ktx:1.5.1
  • [UPDATED] - lib update - androidx.fragment:fragment-ktx:1.5.3
  • [UPDATED] - lib update - androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1
  • [UPDATED] - lib update - androidx.lifecycle:lifecycle-common-java8:2.5.1
  • [UPDATED] - All Koin ViewModel API to use latest ViewModelProvider extras API ViewModel 2.5.1 . API Signature have been changed to keep the existing API. Such API propagates all extras directly to SavedStateHandle. Added ownerProducer: () -> ViewModelStoreOwner, and extrasProducer: (() -> CreationExtras)? parameters to main function.
  • [FIXED] - Fix SavedStateHandle injection and lifecycle follow up with new KoinViewModelFactory
  • [UPDATED] - Sandbox app updated to check new API
  • [DEMRECATED] - all stateViewModel() API functions + all related internals
  • [DEMRECATED] - any use of state: BundleDefinition property in favor of extrasProducer: (() -> CreationExtras). Functions still works, but a conversion from bundle to extras is needed
  • [NEW] - activityViewModel() and getActivityViewModel() added to replace the sharedViewModel functions
  • [DEMRECATED] - all sharedViewModel() fucntions in favor of activityViewModel() functions
  • [UPDATED] - Compile SDK level to 32
  • [UPDATED] - Updated generic API viewModelForClass functions to allow usage of key. state parameters kept, but need conversi onto extras

[koin-android-compat]

  • [UPDATED] - Updated with new ViewModel API internals

[koin-androidx-navigation]

  • [UPDATED] - Updated with new ViewModel API internals. Added ownerProducer: () -> ViewModelStoreOwner, and extrasProducer: (() -> CreationExtras)? parameters

v3.2.3

  • [FIXED] - Fix Broken Scope API and revert back AndroidScopeComponent with related API in Activity & Fragment. Reworked activityScope(), activityRetainedScope() and fragmentScope(). Removed Deprecations. #​1443 #​1448
  • [FIXED] - Fix NavGraph scope resolution #​1446

v3.2.2

  • [FIXED] [core] - Java 8 Compat fix
  • [MERGE] [test] - Java 8 Compat fix #​1437

v3.2.1

  • [NEW] - Version split for Koin core & Android, to allow sperate track on core & android topics (dedicated Github milestones & Git branches/tag)
  • [UPDATED] [core] - lib update - co.touchlab:stately-concurrency:1.2.2
  • [UPDATED] [android] - lib update - androidx.appcompat:appcompat:1.4.2
  • [MERGE] - #​1409 - Android Test Instrumentation Contribution
  • [MERGE] - #​1394 - Scope Documentation Fix
  • [FIXED] [test] - koin-test gradle metadata
  • [FIXED] [android] - koin-android gradle metadata
  • [MERGE] - #​1382 - CreateEagerInstances() available for koinApplication function
  • [FIXED] [androidx-navigation] - add qualifier to koinNavGraphViewModel function - Port of #​1397
  • [FIXED] [android] - Open ViewModel with KClass access for generic uses - #​1402, #​1384
  • [UPDATED] [android] - New Android Scope API - https://insert-koin.io/docs/reference/koin-android/scope - #​1399, #​1356, #​1328, #​1385, #​1414
  • [BREAKING] [android] - Deprecate Android Scope API to avoid use lazy delegate API

v3.2.0

Compare Source

The repository has been splitted for the following sub projects.

This allow independant version tracking and updates.

v3.1.6

Compare Source

  • [FIXED] [core] - fix #​1146 duplicate bindings with getAll()
  • [FIXED] [android] - Require ComponentActivity instead of AppCompatActivity in LifecycleViewModelScopeDelegate for FragmentScenario support
  • [FIXED] [ktor] - Fix #​1263 Ktor scope closing with ApplicationStopped event listening
  • [FIXED] [android] - fix #​1207 #​1308 - Realign ViewModel API with Google viewModels() API to better register on factories
  • [FIXED] [ktor] - downgrade to Ktor 1.6.5 due to link to Kotlin 1.6.x (further versions will follow 3.2.x branch with independant koin-ktor module project)

v3.1.5

Compare Source

  • [FIXED] [android] - #​1240 - ViewModel scope instance creation fixed
  • [FIXED] [android] - #​1232 & #​1207 - Android minimum dependencies is clean up and should avoid indirect library crash
  • [ADDED] [android] - #​1250 - Android instrumented test doc
  • [FIXED] [core] - #​1213 - withInstance() mock instance fixed
  • [FIXED] [core] - #​1248 - fix createeagerInstances() to be seperated back of modules()
  • [FIXED] [core] - checkKoinModules API is fixed / deprecate old signatures
  • [FIXED] [androidx-compose] - ViewModelStoreOwner property fixed for Compose
  • [UPDATED] [androidx-compose] - Compose 1.0.5
  • [FIXED] [android] - fixed scope delegate property to help create scope later for fragment, and bind with parent activity scope

v3.1.4

Compare Source

v3.1.3

Compare Source

  • [UPDATED] [core] - Update to Kotlin 1.5.30
  • [UPDATED] [android] - Update to latest android ktx
  • [UPDATED] [android-compose] - update to jetpack compose 1.0.3
  • [FIXED] [android] - ViewModel instances are now reinjected into Koin Android scopes
  • [FIXED] [android] - Activity/Fragment are now available in their own scopes (no need of explicit inject from the source)
  • [ADDED] [android] - new koin-androidx-navigation package, offering by koinNavGraphViewModel() to allow scope a ViewModel for a given navigation graph - https://insert-koin.io/docs/reference/koin-android/viewmodel#navigation-graph-viewmodel-updated-in-313
  • [DEMRECATED] [android] - by stateViewModel() is deprecated. state parameter is not needed anymore. It's now merged into viewModel(), to inject SavedStateHandle
  • [FIXED] [android] - Fix from Koin 2.x. ViewModel API get back the owner property, to allow specify from where we are instanciating ViewModel.
  • [ADDED] [test] - Introduce new checkKoinModules and DSL to help verify modules - https://insert-koin.io/docs/reference/koin-test/checkmodules
  • [DEMRECATED] [test] - deprecate old checkModules function, in favor of new API checkKoinModules

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Edited by RenovateBot

Merge request reports