@@ -33,23 +33,6 @@ class PurchaseViewModel: BaseIAPViewModel, ProductFetching {
3333 return LocalizedString . getValue ( " purchase.title " )
3434 }
3535
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-
5336 private let cryptomatorSettings : CryptomatorSettings
5437
5538 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 {
7356 cells. append ( . trialCell( TrialCellViewModel ( expirationDate: trialExpirationDate) ) )
7457 } else {
7558 cells. append ( . purchaseCell( PurchaseCellViewModel ( productName: LocalizedString . getValue ( " purchase.product.trial " ) ,
76- productDetail: nil ,
7759 price: LocalizedString . getValue ( " purchase.product.pricing.free " ) ,
7860 purchaseDetail: LocalizedString . getValue ( " purchase.product.trial.duration " ) ,
7961 productIdentifier: . thirtyDayTrial) ) )
@@ -83,7 +65,6 @@ class PurchaseViewModel: BaseIAPViewModel, ProductFetching {
8365 private func addSubscriptionItem( ) {
8466 if let product = products [ . yearlySubscription] , let localizedPrice = product. localizedPrice {
8567 let viewModel = PurchaseCellViewModel ( productName: LocalizedString . getValue ( " purchase.product.yearlySubscription " ) ,
86- productDetail: nil ,
8768 price: localizedPrice,
8869 purchaseDetail: LocalizedString . getValue ( " purchase.product.yearlySubscription.duration " ) ,
8970 productIdentifier: . yearlySubscription)
@@ -93,12 +74,7 @@ class PurchaseViewModel: BaseIAPViewModel, ProductFetching {
9374
9475 private func addLifetimeLicenseItem( ) {
9576 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
10077 let viewModel = PurchaseCellViewModel ( productName: LocalizedString . getValue ( " purchase.product.lifetimeLicense " ) ,
101- productDetail: productDetail,
10278 price: localizedPrice,
10379 purchaseDetail: LocalizedString . getValue ( " purchase.product.lifetimeLicense.duration " ) ,
10480 productIdentifier: . fullVersion)
0 commit comments