Skip to content

Commit

Permalink
Deprecate .full
Browse files Browse the repository at this point in the history
  • Loading branch information
keeshux committed Dec 18, 2024
1 parent 145fb54 commit f102a08
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Library/Sources/CommonIAP/Domain/AppProduct+Features.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ extension AppProduct {

public enum Full {
static let all: [AppProduct] = [
.Full.OneTime.full,
.Full.OneTime.fullTV,
.Full.Recurring.monthly,
.Full.Recurring.yearly,
//
.Full.OneTime.full,
.Full.OneTime.iOS,
.Full.OneTime.macOS
]
Expand All @@ -67,9 +67,6 @@ extension AppProduct.Features {
extension AppProduct.Full {
public enum OneTime {

// iOS/macOS
public static let full = AppProduct(featureId: "full_multi_version")

// iOS/macOS + tvOS
public static let fullTV = AppProduct(featureId: "full.lifetime")
}
Expand All @@ -84,7 +81,10 @@ extension AppProduct.Full {
extension AppProduct {
public var isFullVersion: Bool {
switch self {
case .Full.OneTime.full, .Full.OneTime.fullTV, .Full.Recurring.monthly, .Full.Recurring.yearly:
case .Full.Recurring.yearly,
.Full.Recurring.monthly,
.Full.OneTime.fullTV,
.Full.OneTime.full:
return true
default:
return false
Expand Down Expand Up @@ -113,6 +113,9 @@ extension AppProduct.Features {

extension AppProduct.Full.OneTime {

@available(*, deprecated)
public static let full = AppProduct(featureId: "full_multi_version")

@available(*, deprecated)
public static let iOS = AppProduct(featureId: "full_version")

Expand Down

0 comments on commit f102a08

Please sign in to comment.