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 { struct InApp {
static var isBetaFullVersion: Bool { static var isBetaFullVersion: Bool {
guard !ProcessInfo.processInfo.arguments.contains("FULL_VERSION") else { return ProcessInfo.processInfo.environment["FULL_VERSION"] != nil
return true
}
return false
} }
static let lastFullVersionBuild = 2016 static let lastFullVersionBuild = 2016

View File

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