| 12345678910111213141516171819202122232425262728293031323334 |
- import Foundation
- /// Production App Store identifiers for Printer App - All Printers.
- /// Product IDs are sourced from bundled `paywall.json`.
- enum AppStoreConfig {
- static let displayName = "Printer App - All Printers"
- static let proDisplayName = "\(displayName) Pro"
- static let bundleIdentifier = "com.printer-app-all-printers"
- /// Numeric Mac App Store ID from App Store Connect (General → App Information → Apple ID).
- static let appStoreID = "6785834649"
- /// Mac App Store listing URL.
- static var appStoreURL: URL? {
- guard !appStoreID.isEmpty else { return nil }
- return URL(string: "https://apps.apple.com/app/id\(appStoreID)")
- }
- /// Direct write-review link for the manual Settings action.
- static var appStoreReviewURL: URL? {
- guard !appStoreID.isEmpty else { return nil }
- return URL(string: "https://apps.apple.com/app/id\(appStoreID)?action=write-review")
- }
- enum ProductID {
- private static let paywallConfig = PaywallConfig.loadBundled()
- static let monthly = paywallConfig.plans.monthly.productID
- static let yearly = paywallConfig.plans.yearly.productID
- static let lifetime = paywallConfig.plans.lifetime.productID
- static let all: Set<String> = [monthly, yearly, lifetime]
- }
- }
|