From 99da23de8ed188bed2f96b1c0d05a4f78a05d666 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Tue, 19 Nov 2019 23:38:04 +0100 Subject: [PATCH] Simulate full version through scheme arguments --- Passepartout-iOS/Global/AppConstants+Flags.swift | 7 ++++++- .../xcshareddata/xcschemes/Passepartout-iOS.xcscheme | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Passepartout-iOS/Global/AppConstants+Flags.swift b/Passepartout-iOS/Global/AppConstants+Flags.swift index dcea5341..ec534ede 100644 --- a/Passepartout-iOS/Global/AppConstants+Flags.swift +++ b/Passepartout-iOS/Global/AppConstants+Flags.swift @@ -40,7 +40,12 @@ extension AppConstants { #endif } - static var isBetaFullVersion = false + static var isBetaFullVersion: Bool { + guard !ProcessInfo.processInfo.arguments.contains("FULL_VERSION") else { + return true + } + return false + } static var isMockVPN = false { didSet { diff --git a/Passepartout.xcodeproj/xcshareddata/xcschemes/Passepartout-iOS.xcscheme b/Passepartout.xcodeproj/xcshareddata/xcschemes/Passepartout-iOS.xcscheme index a66d1dc8..7d7ae9d8 100644 --- a/Passepartout.xcodeproj/xcshareddata/xcschemes/Passepartout-iOS.xcscheme +++ b/Passepartout.xcodeproj/xcshareddata/xcschemes/Passepartout-iOS.xcscheme @@ -93,6 +93,12 @@ ReferencedContainer = "container:Passepartout.xcodeproj"> + + + +