mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
ios migration from old version
This commit is contained in:
parent
a3383af4ae
commit
2e562e8318
1 changed files with 7 additions and 1 deletions
|
@ -42,6 +42,12 @@ namespace Bit.iOS
|
|||
{
|
||||
Forms.Init();
|
||||
InitApp();
|
||||
if(App.Migration.MigrationHelpers.NeedsMigration())
|
||||
{
|
||||
var task = App.Migration.MigrationHelpers.PerformMigrationAsync();
|
||||
Task.Delay(2000).Wait();
|
||||
}
|
||||
|
||||
_deviceActionService = ServiceContainer.Resolve<IDeviceActionService>("deviceActionService");
|
||||
_messagingService = ServiceContainer.Resolve<IMessagingService>("messagingService");
|
||||
_broadcasterService = ServiceContainer.Resolve<IBroadcasterService>("broadcasterService");
|
||||
|
@ -240,7 +246,7 @@ namespace Bit.iOS
|
|||
// Migration services
|
||||
ServiceContainer.Register<ILogService>("logService", new ConsoleLogService());
|
||||
ServiceContainer.Register("settingsShim", new App.Migration.SettingsShim());
|
||||
if(false && App.Migration.MigrationHelpers.NeedsMigration())
|
||||
if(App.Migration.MigrationHelpers.NeedsMigration())
|
||||
{
|
||||
ServiceContainer.Register<App.Migration.Abstractions.IOldSecureStorageService>(
|
||||
"oldSecureStorageService", new Migration.KeyChainStorageService());
|
||||
|
|
Loading…
Reference in a new issue