mirror of
https://github.com/bitwarden/android.git
synced 2026-10-23 11:33:22 -05:00
Objective: Remove unused dependencies and simplify the vault sync invocation during ViewModel initialization. Behavioral changes: The vault sync is now triggered using `sync` instead of `syncForResult` and is no longer wrapped in a `viewModelScope` coroutine, simplifying the initialization flow. Specific changes: - Modify `MigrateToMyItemsViewModel` to remove the unused `VaultMigrationManager` dependency. - Update `MigrateToMyItemsViewModel` constructor to accept `VaultSyncManager` as a parameter rather than a property. - Update the `init` block in `MigrateToMyItemsViewModel` to call `vaultSyncManager.sync(forced = true)` directly without a coroutine wrapper. - Update `MigrateToMyItemsViewModelTest` to remove the mock and constructor usage of `VaultMigrationManager`.