Merge branch 'beta-flags'
This commit is contained in:
commit
9a3aef36d1
|
@ -28,7 +28,15 @@ 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 isBetaFullVersion = false
|
||||
|
||||
static var isMockVPN = false {
|
||||
didSet {
|
||||
|
|
|
@ -140,7 +140,7 @@ class ProductManager: NSObject {
|
|||
}
|
||||
|
||||
func isFullVersion() -> Bool {
|
||||
guard !AppConstants.Flags.isBeta else {
|
||||
if AppConstants.Flags.isBeta && AppConstants.Flags.isBetaFullVersion {
|
||||
return true
|
||||
}
|
||||
return purchasedFeatures.contains(.fullVersion)
|
||||
|
|
Loading…
Reference in New Issue