From 94c7f850de34c4572a07d12cf4cd0fd025b57257 Mon Sep 17 00:00:00 2001 From: Lumaa Date: Sat, 24 Feb 2024 13:19:57 +0100 Subject: [PATCH] Debug has premium --- Threaded/AppDelegate.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Threaded/AppDelegate.swift b/Threaded/AppDelegate.swift index d2d4b3a..6a5f7e5 100644 --- a/Threaded/AppDelegate.swift +++ b/Threaded/AppDelegate.swift @@ -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 {