|
|
|
|
@ -161,16 +161,16 @@ import LeStorage |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var currentPlan: StoreItem? { |
|
|
|
|
// #if DEBUG |
|
|
|
|
// return .monthlyUnlimited |
|
|
|
|
// #elseif TESTFLIGHT |
|
|
|
|
// return .monthlyUnlimited |
|
|
|
|
// #else |
|
|
|
|
#if DEBUG |
|
|
|
|
return .monthlyUnlimited |
|
|
|
|
#elseif TESTFLIGHT |
|
|
|
|
return .monthlyUnlimited |
|
|
|
|
#else |
|
|
|
|
if let currentBestPlan = self.currentBestPlan, let plan = StoreItem(rawValue: currentBestPlan.productID) { |
|
|
|
|
return plan |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
// #endif |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func userFilteredPurchases() -> [StoreKit.Transaction] { |
|
|
|
|
|