Mercurial > public > simoleon
comparison Simoleon/SimoleonApp.swift @ 163:35573bdd7d9b
Remove revenuecat
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sat, 11 Sep 2021 16:28:44 +0200 |
parents | 0c589138a6f3 |
children | ad8c6567539d |
comparison
equal
deleted
inserted
replaced
162:f5de15e06c77 | 163:35573bdd7d9b |
---|---|
4 // | 4 // |
5 // Created by Dennis Concepción Martín on 08/07/2021. | 5 // Created by Dennis Concepción Martín on 08/07/2021. |
6 // | 6 // |
7 | 7 |
8 import SwiftUI | 8 import SwiftUI |
9 import Purchases | |
10 | 9 |
11 @main | 10 @main |
12 struct SimoleonApp: App { | 11 struct SimoleonApp: App { |
13 @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate | |
14 let persistenceController = PersistenceController.shared | 12 let persistenceController = PersistenceController.shared |
15 | |
16 init() { | |
17 let apiKey = readConfig(withKey: "PURCHASES_KEY")! | |
18 Purchases.configure(withAPIKey: apiKey) | |
19 } | |
20 | 13 |
21 var body: some Scene { | 14 var body: some Scene { |
22 WindowGroup { | 15 WindowGroup { |
23 ContentView() | 16 ContentView() |
24 .environment(\.managedObjectContext, persistenceController.container.viewContext) | 17 .environment(\.managedObjectContext, persistenceController.container.viewContext) |