mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +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();
|
Forms.Init();
|
||||||
InitApp();
|
InitApp();
|
||||||
|
if(App.Migration.MigrationHelpers.NeedsMigration())
|
||||||
|
{
|
||||||
|
var task = App.Migration.MigrationHelpers.PerformMigrationAsync();
|
||||||
|
Task.Delay(2000).Wait();
|
||||||
|
}
|
||||||
|
|
||||||
_deviceActionService = ServiceContainer.Resolve<IDeviceActionService>("deviceActionService");
|
_deviceActionService = ServiceContainer.Resolve<IDeviceActionService>("deviceActionService");
|
||||||
_messagingService = ServiceContainer.Resolve<IMessagingService>("messagingService");
|
_messagingService = ServiceContainer.Resolve<IMessagingService>("messagingService");
|
||||||
_broadcasterService = ServiceContainer.Resolve<IBroadcasterService>("broadcasterService");
|
_broadcasterService = ServiceContainer.Resolve<IBroadcasterService>("broadcasterService");
|
||||||
|
@ -240,7 +246,7 @@ namespace Bit.iOS
|
||||||
// Migration services
|
// Migration services
|
||||||
ServiceContainer.Register<ILogService>("logService", new ConsoleLogService());
|
ServiceContainer.Register<ILogService>("logService", new ConsoleLogService());
|
||||||
ServiceContainer.Register("settingsShim", new App.Migration.SettingsShim());
|
ServiceContainer.Register("settingsShim", new App.Migration.SettingsShim());
|
||||||
if(false && App.Migration.MigrationHelpers.NeedsMigration())
|
if(App.Migration.MigrationHelpers.NeedsMigration())
|
||||||
{
|
{
|
||||||
ServiceContainer.Register<App.Migration.Abstractions.IOldSecureStorageService>(
|
ServiceContainer.Register<App.Migration.Abstractions.IOldSecureStorageService>(
|
||||||
"oldSecureStorageService", new Migration.KeyChainStorageService());
|
"oldSecureStorageService", new Migration.KeyChainStorageService());
|
||||||
|
|
Loading…
Reference in a new issue