Debug has premium

This commit is contained in:
Lumaa 2024-02-24 13:19:57 +01:00
parent ed731d86a8
commit 94c7f850de
1 changed files with 5 additions and 0 deletions

View File

@ -51,10 +51,15 @@ public class AppDelegate: NSObject, UIWindowSceneDelegate, Sendable, UIApplicati
}
static func hasPlus() -> Bool {
#if DEBUG
self.premium = true
return true
#else
Purchases.shared.getCustomerInfo { (customerInfo, error) in
self.premium = hasActuallyPlus(customerInfo: customerInfo)
}
return self.premium
#endif
}
private static func hasActuallyPlus(customerInfo: CustomerInfo?) -> Bool {