Disable providers and features in beta

This commit is contained in:
Davide De Rosa 2021-01-07 23:29:16 +01:00
parent 54c9ca671a
commit cc8c01a13a
1 changed files with 6 additions and 0 deletions

View File

@ -156,10 +156,16 @@ public class ProductManager: NSObject {
}
public func isEligible(forFeature feature: Product) -> Bool {
guard !isBeta else {
return false
}
return isFullVersion() || purchasedFeatures.contains(feature)
}
public func isEligible(forProvider metadata: Infrastructure.Metadata) -> Bool {
guard !isBeta else {
return false
}
return isFullVersion() || purchasedFeatures.contains(metadata.product)
}