public MainApplication(IntPtr handle, JniHandleOwnership transer) : base(handle, transer) { if (ServiceContainer.RegisteredServices.Count == 0) { RegisterLocalServices(); var deviceActionService = ServiceContainer.Resolve <IDeviceActionService>("deviceActionService"); ServiceContainer.Init(deviceActionService.DeviceUserAgent, Constants.ClearCiphersCacheKey, Constants.AndroidAllClearCipherCacheKeys); // TODO: Update when https://github.com/bitwarden/mobile/pull/1662 gets merged var deleteAccountActionFlowExecutioner = new DeleteAccountActionFlowExecutioner( ServiceContainer.Resolve <IApiService>("apiService"), ServiceContainer.Resolve <IMessagingService>("messagingService"), ServiceContainer.Resolve <IPlatformUtilsService>("platformUtilsService"), ServiceContainer.Resolve <IDeviceActionService>("deviceActionService")); ServiceContainer.Register <IDeleteAccountActionFlowExecutioner>("deleteAccountActionFlowExecutioner", deleteAccountActionFlowExecutioner); var verificationActionsFlowHelper = new VerificationActionsFlowHelper( ServiceContainer.Resolve <IKeyConnectorService>("keyConnectorService"), ServiceContainer.Resolve <IPasswordRepromptService>("passwordRepromptService"), ServiceContainer.Resolve <ICryptoService>("cryptoService")); ServiceContainer.Register <IVerificationActionsFlowHelper>("verificationActionsFlowHelper", verificationActionsFlowHelper); } #if !FDROID if (Build.VERSION.SdkInt <= BuildVersionCodes.Kitkat) { ProviderInstaller.InstallIfNeededAsync(ApplicationContext, this); } #endif }
public MainApplication(IntPtr handle, JniHandleOwnership transer) : base(handle, transer) { //AndroidEnvironment.UnhandledExceptionRaiser += AndroidEnvironment_UnhandledExceptionRaiser; if (!Resolver.IsSet) { SetIoc(this); } if (Build.VERSION.SdkInt <= BuildVersionCodes.Kitkat) { ProviderInstaller.InstallIfNeededAsync(ApplicationContext, this); } }
public MainApplication(IntPtr handle, JniHandleOwnership transer) : base(handle, transer) { if (ServiceContainer.RegisteredServices.Count == 0) { RegisterLocalServices(); var deviceActionService = ServiceContainer.Resolve <IDeviceActionService>("deviceActionService"); ServiceContainer.Init(deviceActionService.DeviceUserAgent); } #if !FDROID if (Build.VERSION.SdkInt <= BuildVersionCodes.Kitkat) { ProviderInstaller.InstallIfNeededAsync(ApplicationContext, this); } #endif }
public MainApplication(IntPtr handle, JniHandleOwnership transer) : base(handle, transer) { if (ServiceContainer.RegisteredServices.Count == 0) { RegisterLocalServices(); ServiceContainer.Init(); if (App.Migration.MigrationHelpers.NeedsMigration()) { var task = App.Migration.MigrationHelpers.PerformMigrationAsync(); Task.Delay(2000).Wait(); } } #if !FDROID if (Build.VERSION.SdkInt <= BuildVersionCodes.Kitkat) { ProviderInstaller.InstallIfNeededAsync(ApplicationContext, this); } #endif }