mirror of
https://github.com/bitwarden/mobile
synced 2026-01-14 22:43:15 +00:00
EC-833 fix WatchDeviceService registration to be called from the extensions appropiately (#2233)
This commit is contained in:
committed by
GitHub
parent
1a3ff5ec41
commit
28d204f2b1
@@ -49,10 +49,7 @@ namespace Bit.iOS.Core.Utilities
|
||||
Bit.Core.Constants.iOSAllClearCipherCacheKeys);
|
||||
InitLogger();
|
||||
|
||||
ServiceContainer.Register<IWatchDeviceService>(new WatchDeviceService(ServiceContainer.Resolve<ICipherService>(),
|
||||
ServiceContainer.Resolve<IEnvironmentService>(),
|
||||
ServiceContainer.Resolve<IStateService>(),
|
||||
ServiceContainer.Resolve<IVaultTimeoutService>()));
|
||||
RegisterFinallyBeforeBootstrap();
|
||||
|
||||
Bootstrap();
|
||||
|
||||
@@ -139,6 +136,14 @@ namespace Bit.iOS.Core.Utilities
|
||||
ServiceContainer.Register<IAvatarImageSourcePool>("avatarImageSourcePool", new AvatarImageSourcePool());
|
||||
}
|
||||
|
||||
public static void RegisterFinallyBeforeBootstrap()
|
||||
{
|
||||
ServiceContainer.Register<IWatchDeviceService>(new WatchDeviceService(ServiceContainer.Resolve<ICipherService>(),
|
||||
ServiceContainer.Resolve<IEnvironmentService>(),
|
||||
ServiceContainer.Resolve<IStateService>(),
|
||||
ServiceContainer.Resolve<IVaultTimeoutService>()));
|
||||
}
|
||||
|
||||
public static void Bootstrap(Func<Task> postBootstrapFunc = null)
|
||||
{
|
||||
(ServiceContainer.Resolve<II18nService>("i18nService") as MobileI18nService).Init();
|
||||
|
||||
Reference in New Issue
Block a user