Mercurial > public > simoleon
diff Simoleon/SimoleonApp.swift @ 154:8afba86ab8dd
Refactor code
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Wed, 25 Aug 2021 10:43:12 +0100 |
parents | 1f657241c28f |
children | 84137052813d |
line wrap: on
line diff
--- a/Simoleon/SimoleonApp.swift Mon Aug 23 17:14:47 2021 +0100 +++ b/Simoleon/SimoleonApp.swift Wed Aug 25 10:43:12 2021 +0100 @@ -12,9 +12,11 @@ struct SimoleonApp: App { @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate let persistenceController = PersistenceController.shared + let fileController = FileController() init() { - Purchases.configure(withAPIKey: "\(readConfig("PURCHASES_KEY")!)") + let apiKey = fileController.readConfigVariable(withKey: "PURCHASES_KEY")! + Purchases.configure(withAPIKey: apiKey) } var body: some Scene {