1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-02 08:33:17 +00:00

clear cache and open file on iOS

This commit is contained in:
Kyle Spearrin
2017-07-13 10:51:45 -04:00
parent fe5cc1f8f3
commit 352c8ee867
10 changed files with 134 additions and 13 deletions

View File

@@ -32,6 +32,7 @@ namespace Bit.App
private readonly ILocalizeService _localizeService;
private readonly IAppInfoService _appInfoService;
private readonly IAppSettingsService _appSettingsService;
private readonly IDeviceActionService _deviceActionService;
public App(
string uri,
@@ -45,7 +46,8 @@ namespace Bit.App
IGoogleAnalyticsService googleAnalyticsService,
ILocalizeService localizeService,
IAppInfoService appInfoService,
IAppSettingsService appSettingsService)
IAppSettingsService appSettingsService,
IDeviceActionService deviceActionService)
{
_uri = uri;
_databaseService = databaseService;
@@ -59,6 +61,7 @@ namespace Bit.App
_localizeService = localizeService;
_appInfoService = appInfoService;
_appSettingsService = appSettingsService;
_deviceActionService = deviceActionService;
SetCulture();
SetStyles();
@@ -110,6 +113,7 @@ namespace Bit.App
await Task.Run(() => FullSyncAsync()).ConfigureAwait(false);
}
await Task.Run(() => _deviceActionService.ClearCache()).ConfigureAwait(false);
Debug.WriteLine("OnStart");
}