Commit 269bad62 authored by Jose Blaya's avatar Jose Blaya
Browse files

New configuration property to decide when to show the trial purchase view

parent 21cbb461
......@@ -120,6 +120,9 @@ extension Client {
private var inAppPlans: [String: Plan]
/// Enables background server pinging.
public var eligibleForTrial: Bool
#endif
/// The value of the max of servers appearing in the quick connect tile.
......@@ -189,6 +192,7 @@ extension Client {
#if os(iOS)
inAppPlans = [:]
eligibleForTrial = true
#endif
maxQuickConnectServers = 6
......
......@@ -26,8 +26,8 @@ class WelcomePageViewController: UIPageViewController {
source.append(vc)
}
if preset.pages.contains(.purchase) {
//let vc = StoryboardScene.Welcome.purchaseViewController.instantiate()
let vc = StoryboardScene.Welcome.purchaseTrialViewController.instantiate()
let vc = Client.configuration.eligibleForTrial ? StoryboardScene.Welcome.purchaseTrialViewController.instantiate() :
StoryboardScene.Welcome.purchaseViewController.instantiate()
source.append(vc)
}
if preset.pages.contains(.restore) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment