Mercurial > public > simoleon
comparison Simoleon/SimoleonApp.swift @ 156:84137052813d
Refactor code
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sat, 28 Aug 2021 11:15:25 +0100 |
parents | 8afba86ab8dd |
children | 0c589138a6f3 |
comparison
equal
deleted
inserted
replaced
155:681f2cbe8c7f | 156:84137052813d |
---|---|
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() | |
16 | 15 |
17 init() { | 16 init() { |
18 let apiKey = fileController.readConfigVariable(withKey: "PURCHASES_KEY")! | 17 let apiKey = readConfigVariable(withKey: "PURCHASES_KEY")! |
19 Purchases.configure(withAPIKey: apiKey) | 18 Purchases.configure(withAPIKey: apiKey) |
20 } | 19 } |
21 | 20 |
22 var body: some Scene { | 21 var body: some Scene { |
23 WindowGroup { | 22 WindowGroup { |