mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-30 12:54:24 +01:00
FFImageLoading only for main app
This commit is contained in:
parent
3e51ff46f3
commit
ca8f6ee10b
@ -44,17 +44,6 @@ namespace Bit.iOS.Core.Utilities
|
|||||||
ServiceContainer.Register<ILogService>("logService", new ConsoleLogService());
|
ServiceContainer.Register<ILogService>("logService", new ConsoleLogService());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Note: This might cause a race condition. Investigate more.
|
|
||||||
Task.Run(() =>
|
|
||||||
{
|
|
||||||
FFImageLoading.Forms.Platform.CachedImageRenderer.Init();
|
|
||||||
FFImageLoading.ImageService.Instance.Initialize(new FFImageLoading.Config.Configuration
|
|
||||||
{
|
|
||||||
FadeAnimationEnabled = false,
|
|
||||||
FadeAnimationForCachedImages = false
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
var preferencesStorage = new PreferencesStorageService(AppGroupId);
|
var preferencesStorage = new PreferencesStorageService(AppGroupId);
|
||||||
var appGroupContainer = new NSFileManager().GetContainerUrl(AppGroupId);
|
var appGroupContainer = new NSFileManager().GetContainerUrl(AppGroupId);
|
||||||
var liteDbStorage = new LiteDbStorageService(
|
var liteDbStorage = new LiteDbStorageService(
|
||||||
|
@ -246,6 +246,17 @@ namespace Bit.iOS
|
|||||||
"oldSecureStorageService", new Migration.KeyChainStorageService());
|
"oldSecureStorageService", new Migration.KeyChainStorageService());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Note: This might cause a race condition. Investigate more.
|
||||||
|
Task.Run(() =>
|
||||||
|
{
|
||||||
|
FFImageLoading.Forms.Platform.CachedImageRenderer.Init();
|
||||||
|
FFImageLoading.ImageService.Instance.Initialize(new FFImageLoading.Config.Configuration
|
||||||
|
{
|
||||||
|
FadeAnimationEnabled = false,
|
||||||
|
FadeAnimationForCachedImages = false
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
iOSCoreHelpers.RegisterLocalServices();
|
iOSCoreHelpers.RegisterLocalServices();
|
||||||
RegisterPush();
|
RegisterPush();
|
||||||
ServiceContainer.Init();
|
ServiceContainer.Init();
|
||||||
|
Loading…
Reference in New Issue
Block a user