Migrates database + cached apps from app sandbox to app group

This commit is contained in:
Riley Testut
2020-09-16 12:09:12 -07:00
parent aaaf6ed38d
commit 50a5d56856
4 changed files with 121 additions and 16 deletions

View File

@@ -41,6 +41,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool
{
// Register default settings before doing anything else.
UserDefaults.registerDefaults()
DatabaseManager.shared.start { (error) in
if let error = error
{
@@ -58,9 +61,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
ServerManager.shared.startDiscovering()
SecureValueTransformer.register()
UserDefaults.standard.registerDefaults()
SecureValueTransformer.register()
if UserDefaults.standard.firstLaunch == nil
{