Free premium temporarily

This commit is contained in:
Lumaa 2024-03-29 13:30:36 +01:00
parent 143cb61533
commit 387141118b
1 changed files with 4 additions and 1 deletions

View File

@ -64,7 +64,10 @@ public class AppDelegate: NSObject, UIWindowSceneDelegate, Sendable, UIApplicati
// }
/// This function returns a fake "true" value every time whatever the customer info is
static func hasPlus() -> Bool { return true }
static func hasPlus() -> Bool {
self.premium = true
return true
}
private static func hasActuallyPlus(customerInfo: CustomerInfo?) -> Bool {
return customerInfo?.entitlements[PlusEntitlements.lifetime.getEntitlementId()]?.isActive == true || customerInfo?.entitlements[PlusEntitlements.monthly.getEntitlementId()]?.isActive == true || customerInfo?.entitlements[PlusEntitlements.yearly.getEntitlementId()]?.isActive == true