Mercurial > public > simoleon
comparison Simoleon/SimoleonApp.swift @ 28:4f862c618b44
Implemented RevenueCat
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Thu, 22 Jul 2021 19:06:01 +0100 |
parents | 94fd7ac93060 |
children | 75c1a05176f6 |
comparison
equal
deleted
inserted
replaced
27:d95582268b44 | 28:4f862c618b44 |
---|---|
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 | |
9 | 10 |
10 @main | 11 @main |
11 struct SimoleonApp: App { | 12 struct SimoleonApp: App { |
12 let persistenceController = PersistenceController.shared | 13 let persistenceController = PersistenceController.shared |
14 init() { | |
15 Purchases.configure(withAPIKey: "\(readConfig("PURCHASES_KEY")!)") | |
16 } | |
13 | 17 |
14 var body: some Scene { | 18 var body: some Scene { |
15 WindowGroup { | 19 WindowGroup { |
16 if UIDevice.current.userInterfaceIdiom == .pad { | 20 if UIDevice.current.userInterfaceIdiom == .pad { |
17 ContentViewPad() | 21 ContentViewPad() |