diff --git a/Passepartout-iOS/Global/AppConstants+Flags.swift b/Passepartout-iOS/Global/AppConstants+Flags.swift index 36805328..2ceedb40 100644 --- a/Passepartout-iOS/Global/AppConstants+Flags.swift +++ b/Passepartout-iOS/Global/AppConstants+Flags.swift @@ -28,7 +28,13 @@ import PassepartoutCore extension AppConstants { class Flags { - static var isBeta = false + static var isBeta: Bool { + #if targetEnvironment(simulator) + return true + #else + return Bundle.main.appStoreReceiptURL?.lastPathComponent == "sandboxReceipt" + #endif + } static var isMockVPN = false { didSet {