Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

[IP-416] Reduce number of free trial days to 7

  • Loading branch information
mahmoud-adam85 committed Apr 4, 2019
1 parent 91892c6 commit 19f5bc461886e6395fc4627001e2e93e3d9b7622
@@ -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"

0 comments on commit 19f5bc4

Please sign in to comment.