Mercurial > public > geoquiz
comparison GeoQuiz/Logic/StoreKitController.swift @ 21:b145c408f791
refactor code
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Tue, 25 Oct 2022 15:30:01 +0200 |
parents | f140bb277c96 |
children |
comparison
equal
deleted
inserted
replaced
20:e281791e0494 | 21:b145c408f791 |
---|---|
24 } | 24 } |
25 | 25 |
26 @Published var premiumIsActive = false | 26 @Published var premiumIsActive = false |
27 | 27 |
28 init() { | 28 init() { |
29 #if DEBUG | |
30 premiumIsActive = true | |
31 #else | |
29 Purchases.shared.getCustomerInfo { (customerInfo, error) in | 32 Purchases.shared.getCustomerInfo { (customerInfo, error) in |
30 self.customerInfo = customerInfo | 33 self.customerInfo = customerInfo |
31 } | 34 } |
35 #endif | |
32 } | 36 } |
33 | 37 |
34 func buy(_ package: Package) { | 38 func buy(_ package: Package) { |
35 showingActivityAlert = true | 39 showingActivityAlert = true |
36 | 40 |