1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-26 13:13:28 +00:00

EC-833 fix WatchDeviceService registration to be called from the extensions appropiately (#2233)

This commit is contained in:
Federico Maccaroni
2022-12-13 11:27:15 -03:00
committed by GitHub
parent 1a3ff5ec41
commit 28d204f2b1
4 changed files with 12 additions and 9 deletions

View File

@@ -306,11 +306,7 @@ namespace Bit.iOS
ServiceContainer.Init(deviceActionService.DeviceUserAgent, Constants.ClearCiphersCacheKey,
Constants.iOSAllClearCipherCacheKeys);
iOSCoreHelpers.InitLogger();
ServiceContainer.Register<IWatchDeviceService>(new WatchDeviceService(ServiceContainer.Resolve<ICipherService>(),
ServiceContainer.Resolve<IEnvironmentService>(),
ServiceContainer.Resolve<IStateService>(),
ServiceContainer.Resolve<IVaultTimeoutService>()));
iOSCoreHelpers.RegisterFinallyBeforeBootstrap();
_pushHandler = new iOSPushNotificationHandler(
ServiceContainer.Resolve<IPushNotificationListenerService>("pushNotificationListenerService"));