From ed0b12cd24ff5a77d08e7519c30cca48f1d0803a Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sun, 27 Dec 2020 15:43:37 +0100 Subject: [PATCH] Use environment for testing full version --- Passepartout-iOS/Global/AppConstants+App.swift | 5 +---- .../xcshareddata/xcschemes/Passepartout-iOS.xcscheme | 11 ++++++----- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Passepartout-iOS/Global/AppConstants+App.swift b/Passepartout-iOS/Global/AppConstants+App.swift index 21f3af30..37fbf2b9 100644 --- a/Passepartout-iOS/Global/AppConstants+App.swift +++ b/Passepartout-iOS/Global/AppConstants+App.swift @@ -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 diff --git a/Passepartout.xcodeproj/xcshareddata/xcschemes/Passepartout-iOS.xcscheme b/Passepartout.xcodeproj/xcshareddata/xcschemes/Passepartout-iOS.xcscheme index 35334b0d..92a99058 100644 --- a/Passepartout.xcodeproj/xcshareddata/xcschemes/Passepartout-iOS.xcscheme +++ b/Passepartout.xcodeproj/xcshareddata/xcschemes/Passepartout-iOS.xcscheme @@ -73,12 +73,13 @@ ReferencedContainer = "container:Passepartout.xcodeproj"> - - + - - + +