Use environment for testing full version

This commit is contained in:
Davide De Rosa 2020-12-27 15:43:37 +01:00
parent 1213212332
commit ed0b12cd24
2 changed files with 7 additions and 9 deletions

View File

@ -33,10 +33,7 @@ extension AppConstants {
struct InApp {
static var isBetaFullVersion: Bool {
guard !ProcessInfo.processInfo.arguments.contains("FULL_VERSION") else {
return true
}
return false
return ProcessInfo.processInfo.environment["FULL_VERSION"] != nil
}
static let lastFullVersionBuild = 2016

View File

@ -73,12 +73,13 @@
ReferencedContainer = "container:Passepartout.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<CommandLineArguments>
<CommandLineArgument
argument = "FULL_VERSION"
<EnvironmentVariables>
<EnvironmentVariable
key = "FULL_VERSION"
value = ""
isEnabled = "YES">
</CommandLineArgument>
</CommandLineArguments>
</EnvironmentVariable>
</EnvironmentVariables>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"