mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-01-18 22:49:10 +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 {
|
extension AppConstants {
|
||||||
class Flags {
|
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 {
|
static var isMockVPN = false {
|
||||||
didSet {
|
didSet {
|
||||||
|
Loading…
Reference in New Issue
Block a user