mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-01-18 14:39:09 +00:00
Infer beta build from App Store receipt URL
This commit is contained in:
parent
02d9d860b3
commit
c938023483
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user