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

@@ -13,6 +13,7 @@ import Articles
import RSWeb
import Account
import RSCore
import Secrets
// If we're not going to import Sparkle, provide dummy protocols to make it easy
// for AppDelegate to comply
@@ -70,6 +71,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
override init() {
super.init()
SecretsManager.provider = Secrets()
AccountManager.shared = AccountManager(accountsFolder: Platform.dataSubfolder(forApplication: nil, folderName: "Accounts")!)
FeedProviderManager.shared.delegate = ExtensionPointManager.shared