Refactor how we do Secrets to work with the new Swift Package structure

This commit is contained in:
Maurice Parker
2020-07-30 17:40:45 -05:00
parent 7bd1ac2d89
commit b724658528
16 changed files with 79 additions and 24 deletions

View File

@@ -12,6 +12,7 @@ import RSWeb
import Account
import BackgroundTasks
import os.log
import Secrets
var appDelegate: AppDelegate!
@@ -60,6 +61,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
super.init()
appDelegate = self
SecretsManager.provider = Secrets()
let documentAccountURL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first!
let documentAccountsFolder = documentAccountURL.appendingPathComponent("Accounts").absoluteString
let documentAccountsFolderPath = String(documentAccountsFolder.suffix(from: documentAccountsFolder.index(documentAccountsFolder.startIndex, offsetBy: 7)))