|
@@ -2,7 +2,6 @@ import Foundation
|
|
|
import StoreKit
|
|
import StoreKit
|
|
|
|
|
|
|
|
enum PaywallPlanKind: String, CaseIterable, Sendable {
|
|
enum PaywallPlanKind: String, CaseIterable, Sendable {
|
|
|
- case weekly
|
|
|
|
|
case monthly
|
|
case monthly
|
|
|
case yearly
|
|
case yearly
|
|
|
case lifetime
|
|
case lifetime
|
|
@@ -174,7 +173,6 @@ struct StoreKitCatalogSnapshot: Sendable {
|
|
|
return .lifetime
|
|
return .lifetime
|
|
|
}
|
|
}
|
|
|
switch subscriptionPeriod {
|
|
switch subscriptionPeriod {
|
|
|
- case "P1W": return .weekly
|
|
|
|
|
case "P1M": return .monthly
|
|
case "P1M": return .monthly
|
|
|
case "P1Y": return .yearly
|
|
case "P1Y": return .yearly
|
|
|
default: return .monthly
|
|
default: return .monthly
|
|
@@ -183,7 +181,6 @@ struct StoreKitCatalogSnapshot: Sendable {
|
|
|
|
|
|
|
|
private static func sortOrder(for subscriptionPeriod: String?) -> Int {
|
|
private static func sortOrder(for subscriptionPeriod: String?) -> Int {
|
|
|
switch subscriptionPeriod {
|
|
switch subscriptionPeriod {
|
|
|
- case "P1W": return 10
|
|
|
|
|
case "P1M": return 20
|
|
case "P1M": return 20
|
|
|
case "P1Y": return 30
|
|
case "P1Y": return 30
|
|
|
default: return 40
|
|
default: return 40
|