Mercurial > public > simoleon
comparison 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 |
comparison
equal
deleted
inserted
replaced
153:2590ee472aa9 | 154:8afba86ab8dd |
---|---|
10 | 10 |
11 @main | 11 @main |
12 struct SimoleonApp: App { | 12 struct SimoleonApp: App { |
13 @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate | 13 @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate |
14 let persistenceController = PersistenceController.shared | 14 let persistenceController = PersistenceController.shared |
15 let fileController = FileController() | |
15 | 16 |
16 init() { | 17 init() { |
17 Purchases.configure(withAPIKey: "\(readConfig("PURCHASES_KEY")!)") | 18 let apiKey = fileController.readConfigVariable(withKey: "PURCHASES_KEY")! |
19 Purchases.configure(withAPIKey: apiKey) | |
18 } | 20 } |
19 | 21 |
20 var body: some Scene { | 22 var body: some Scene { |
21 WindowGroup { | 23 WindowGroup { |
22 ContentView() | 24 ContentView() |