Fix conditions for trusted networks and feedback
Wrong on macOS.
This commit is contained in:
parent
3a5bbf4742
commit
1180590f40
|
@ -173,19 +173,11 @@ public class ProductManager: NSObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
private func isEligibleForTrustedNetworks() -> Bool {
|
private func isEligibleForTrustedNetworks() -> Bool {
|
||||||
#if os(iOS)
|
|
||||||
return isFullVersion() || purchasedFeatures.contains(.trustedNetworks)
|
return isFullVersion() || purchasedFeatures.contains(.trustedNetworks)
|
||||||
#else
|
|
||||||
return isFullVersion()
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public func isEligibleForFeedback() -> Bool {
|
public func isEligibleForFeedback() -> Bool {
|
||||||
#if os(iOS)
|
|
||||||
return isBeta || !purchasedFeatures.isEmpty
|
return isBeta || !purchasedFeatures.isEmpty
|
||||||
#else
|
|
||||||
return isFullVersion()
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public func verifyEligible(forFeature feature: Product) throws {
|
public func verifyEligible(forFeature feature: Product) throws {
|
||||||
|
|
Loading…
Reference in New Issue