Simulate full version through scheme arguments

This commit is contained in:
Davide De Rosa 2019-11-19 23:38:04 +01:00
parent c33e087f0c
commit 99da23de8e
2 changed files with 12 additions and 1 deletions

View File

@ -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 {

View File

@ -93,6 +93,12 @@
ReferencedContainer = "container:Passepartout.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<CommandLineArguments>
<CommandLineArgument
argument = "FULL_VERSION"
isEnabled = "YES">
</CommandLineArgument>
</CommandLineArguments>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"