Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[IP-416] Reduce number of free trial days to 7
- Loading branch information
|
|
@@ -68,7 +68,7 @@ class LumenFreshtabViewController: FreshtabViewController { |
|
|
} |
|
|
case .trial: |
|
|
let days = type.trialRemainingDays() ?? -1 |
|
|
if days > 7 { |
|
|
if days > 3 { |
|
|
let title = String(format: NSLocalizedString("%d more days left in trial", tableName: "Lumen", comment: "Trial days left title"), days) |
|
|
let action = NSLocalizedString("UPGRADE", tableName: "Lumen", comment: "Upgrade action") |
|
|
let btn = ButtonWithUnderlinedText(startText: (title, LumenFreshtabUI.mainTextColor), |
|
|
|
|
|
@@ -400,7 +400,7 @@ class VPNViewController: UIViewController { |
|
|
let currentSubscription = SubscriptionController.shared.getCurrentSubscription() |
|
|
switch currentSubscription { |
|
|
case .trial(_): |
|
|
if let trialRemainingDays = currentSubscription.trialRemainingDays(), trialRemainingDays < 8 { |
|
|
if let trialRemainingDays = currentSubscription.trialRemainingDays(), trialRemainingDays < 4 { |
|
|
self.upgradeView = UpgradeView(view: "vpn") |
|
|
self.upgradeView?.delegate = self |
|
|
view.addSubview(upgradeView!) |
|
|
|
|
|
@@ -208,7 +208,7 @@ extension PaidControlCenterViewController : UpgradeLumenDelegate { |
|
|
switch currentSubscription { |
|
|
case .trial(_): |
|
|
let trialRemainingDays = currentSubscription.trialRemainingDays() ?? -1 |
|
|
if trialRemainingDays > 7 { |
|
|
if trialRemainingDays > 3 { |
|
|
let title = String(format: NSLocalizedString("%d more days left in trial", tableName: "Lumen", comment: "Trial days left title"), trialRemainingDays) |
|
|
let action = NSLocalizedString("UPGRADE", tableName: "Lumen", comment: "Upgrade action") |
|
|
upgradeButton = ButtonWithUnderlinedText(startText: (title, UIColor.theme.lumenSubscription.upgradeLabel), |
|
|
|
|
|
@@ -15,7 +15,7 @@ public class SubscriptionController { |
|
|
|
|
|
//MARK:- Private variables |
|
|
private let storeService: IAPService |
|
|
private let TrialPeriod: Int = 14 |
|
|
private let TrialPeriod: Int = 7 |
|
|
private let purchasedProductIdentifierKey = "Lumen.PurchasedProductIdentifier" |
|
|
private let expirationDateKey = "Lumen.ExpirationDate" |
|
|
private let trialRemainingDaysKey = "Lumen.TrialRemainingDays" |
|
|
|