Add specific flag to assume full version in beta

To skip in-app testing.
This commit is contained in:
Davide De Rosa 2019-11-02 11:45:00 +01:00
parent c938023483
commit 0b23f011c4
2 changed files with 3 additions and 1 deletions

View File

@ -36,6 +36,8 @@ extension AppConstants {
#endif #endif
} }
static var isBetaFullVersion = false
static var isMockVPN = false { static var isMockVPN = false {
didSet { didSet {
VPN.isMockVPN = isMockVPN VPN.isMockVPN = isMockVPN

View File

@ -140,7 +140,7 @@ class ProductManager: NSObject {
} }
func isFullVersion() -> Bool { func isFullVersion() -> Bool {
guard !AppConstants.Flags.isBeta else { if AppConstants.Flags.isBeta && AppConstants.Flags.isBetaFullVersion {
return true return true
} }
return purchasedFeatures.contains(.fullVersion) return purchasedFeatures.contains(.fullVersion)