Няма описание

SubscriptionProductIDs.swift 951B

12345678910111213141516171819202122232425262728
  1. //
  2. // SubscriptionProductIDs.swift
  3. // App for Indeed
  4. //
  5. import Foundation
  6. /// Identifiers for auto-renewable subscriptions in App Store Connect.
  7. /// IDs may only contain letters, numbers, underscores, and periods (no hyphens).
  8. /// Keep these strings identical in code, `Paywall.storekit`, and App Store Connect.
  9. /// Local Xcode runs use `App for Indeed/Paywall.storekit` (Run scheme → Options → StoreKit Configuration).
  10. enum SubscriptionProductIDs {
  11. static let weekly = "com.hwaccount.appforindeed.pro.weekly"
  12. static let monthly = "com.hwaccount.appforindeed.pro.monthly"
  13. static let yearly = "com.hwaccount.appforindeed.pro.yearly"
  14. static let all: [String] = [weekly, monthly, yearly]
  15. static func productID(planKey: String) -> String? {
  16. switch planKey {
  17. case "weekly": return weekly
  18. case "monthly": return monthly
  19. case "yearly": return yearly
  20. default: return nil
  21. }
  22. }
  23. }