// // SubscriptionProductIDs.swift // App for Indeed // import Foundation /// Identifiers for auto-renewable subscriptions in App Store Connect. /// Local Xcode runs use `App for Indeed/ProSubscriptions.storekit` (selected in the Run scheme → Options → StoreKit Configuration). /// Create three subscriptions with these exact IDs and attach them to the same subscription group. enum SubscriptionProductIDs { static let weekly = "com.mqldev.appforindeed.pro.weekly" static let monthly = "com.mqldev.appforindeed.pro.monthly" static let yearly = "com.mqldev.appforindeed.pro.yearly" static let all: [String] = [weekly, monthly, yearly] static func productID(planKey: String) -> String? { switch planKey { case "weekly": return weekly case "monthly": return monthly case "yearly": return yearly default: return nil } } }