@@ -33,23 +33,6 @@ class PurchaseViewModel: BaseIAPViewModel, ProductFetching {
33
33
return LocalizedString . getValue ( " purchase.title " )
34
34
}
35
35
36
- // Temporarily added for December 2024 Sale
37
- override var infoText : NSAttributedString ? {
38
- let currentYear = Calendar . current. component ( . year, from: Date ( ) )
39
- let currentMonth = Calendar . current. component ( . month, from: Date ( ) )
40
- if currentYear == 2024 && currentMonth == 12 {
41
- return NSAttributedString (
42
- string: " *Note: The discount amount may vary by region. " ,
43
- attributes: [
44
- . font: UIFont . preferredFont ( forTextStyle: . footnote) ,
45
- . foregroundColor: UIColor . secondaryLabel
46
- ]
47
- )
48
- } else {
49
- return nil
50
- }
51
- }
52
-
53
36
private let cryptomatorSettings : CryptomatorSettings
54
37
55
38
init ( storeManager: IAPStore = StoreManager . shared, iapManager: IAPManager = StoreObserver . shared, cryptomatorSettings: CryptomatorSettings = CryptomatorUserDefaults . shared, minimumDisplayTime: TimeInterval = 1.0 ) {
@@ -73,7 +56,6 @@ class PurchaseViewModel: BaseIAPViewModel, ProductFetching {
73
56
cells. append ( . trialCell( TrialCellViewModel ( expirationDate: trialExpirationDate) ) )
74
57
} else {
75
58
cells. append ( . purchaseCell( PurchaseCellViewModel ( productName: LocalizedString . getValue ( " purchase.product.trial " ) ,
76
- productDetail: nil ,
77
59
price: LocalizedString . getValue ( " purchase.product.pricing.free " ) ,
78
60
purchaseDetail: LocalizedString . getValue ( " purchase.product.trial.duration " ) ,
79
61
productIdentifier: . thirtyDayTrial) ) )
@@ -83,7 +65,6 @@ class PurchaseViewModel: BaseIAPViewModel, ProductFetching {
83
65
private func addSubscriptionItem( ) {
84
66
if let product = products [ . yearlySubscription] , let localizedPrice = product. localizedPrice {
85
67
let viewModel = PurchaseCellViewModel ( productName: LocalizedString . getValue ( " purchase.product.yearlySubscription " ) ,
86
- productDetail: nil ,
87
68
price: localizedPrice,
88
69
purchaseDetail: LocalizedString . getValue ( " purchase.product.yearlySubscription.duration " ) ,
89
70
productIdentifier: . yearlySubscription)
@@ -93,12 +74,7 @@ class PurchaseViewModel: BaseIAPViewModel, ProductFetching {
93
74
94
75
private func addLifetimeLicenseItem( ) {
95
76
if let product = products [ . fullVersion] , let localizedPrice = product. localizedPrice {
96
- // Temporarily added for December 2024 Sale
97
- let currentYear = Calendar . current. component ( . year, from: Date ( ) )
98
- let currentMonth = Calendar . current. component ( . month, from: Date ( ) )
99
- let productDetail = currentYear == 2024 && currentMonth == 12 ? " 🎁 33%* off in December " : nil
100
77
let viewModel = PurchaseCellViewModel ( productName: LocalizedString . getValue ( " purchase.product.lifetimeLicense " ) ,
101
- productDetail: productDetail,
102
78
price: localizedPrice,
103
79
purchaseDetail: LocalizedString . getValue ( " purchase.product.lifetimeLicense.duration " ) ,
104
80
productIdentifier: . fullVersion)
0 commit comments