comparison Simoleon/Settings.swift @ 128:87f02d4f9c26

Add custom build configuration Now I can add logic when the app is built under the Screenshots scheme
author Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
date Mon, 16 Aug 2021 18:21:39 +0100
parents 529feb1fc8d5
children 6eac99e99b96
comparison
equal deleted inserted replaced
127:0e693e85db9b 128:87f02d4f9c26
148 } 148 }
149 } 149 }
150 150
151 // Check if user subscription is active 151 // Check if user subscription is active
152 private func checkEntitlement() { 152 private func checkEntitlement() {
153 #if DEBUG 153 #if SCREENSHOTS
154 entitlementIsActive = true 154 entitlementIsActive = true
155 #else 155 #else
156 Purchases.shared.purchaserInfo { (purchaserInfo, error) in 156 Purchases.shared.purchaserInfo { (purchaserInfo, error) in
157 if purchaserInfo?.entitlements["all"]?.isActive == true { 157 if purchaserInfo?.entitlements["all"]?.isActive == true {
158 entitlementIsActive = true 158 entitlementIsActive = true