Recognize IAPs other than full version on Mac (#281)

This commit is contained in:
Davide De Rosa 2023-04-04 18:59:05 +02:00 committed by GitHub
parent d4d3d97081
commit 07bd126131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Improve kill switch behavior. [#181](https://github.com/passepartoutvpn/passepartout-apple/issues/181)
- Retain original filename as imported profile name. [#240](https://github.com/passepartoutvpn/passepartout-apple/pull/240)
- In-app purchases other than full version were not recognized (macOS). [#281](https://github.com/passepartoutvpn/passepartout-apple/pull/281)
## 2.0.2 (2022-10-31)

View File

@ -205,11 +205,7 @@ class ProductManager: NSObject, ObservableObject {
return true
}
}
if isMac {
return isFullVersion()
} else {
return isFullVersion() || purchasedFeatures.contains(feature)
}
return isFullVersion() || purchasedFeatures.contains(feature)
}
func isEligible(forProvider providerName: ProviderName) -> Bool {