fix release branch

release
Razmig Sarkissian 1 year ago
parent 37e184e199
commit 5c5c741fba
  1. 6
      PadelClub/Utils/URLs.swift
  2. 7
      PadelClub/Views/Tournament/Subscription/Guard.swift

@ -9,9 +9,15 @@ import Foundation
enum URLs: String, Identifiable {
#if DEBUG
case activationHost = "xlr.alwaysdata.net"
case main = "https://xlr.alwaysdata.net/"
case api = "https://xlr.alwaysdata.net/roads/"
#else
case activationHost = "padelclub.app"
case main = "https://padelclub.app/"
case api = "https://padelclub.app/roads/"
#endif
case subscriptions = "https://apple.co/2Th4vqI"
case beachPadel = "https://beach-padel.app.fft.fr/beachja/index/"

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

Loading…
Cancel
Save