Allow Oeck provider without purchase

This commit is contained in:
Davide De Rosa 2021-10-14 19:06:15 +02:00
parent db95bda84a
commit 7287fb33c8
4 changed files with 17 additions and 0 deletions

View File

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Changed
- Allow Oeck provider without any purchase.
## 1.17.0 Beta 2812 (2021-10-11)
### Fixed

View File

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Changed
- Allow Oeck provider without any purchase.
## 1.17.0 Beta 2812 (2021-10-11)
### Fixed

View File

@ -227,6 +227,9 @@ public class ProductManager: NSObject {
throw ProductError.beta
}
}
guard metadata.name != .oeck else {
return
}
guard isEligible(forFeature: metadata.product) else {
throw ProductError.uneligible
}

View File

@ -39,6 +39,8 @@ extension Infrastructure.Name {
public static let nordvpn = "nordvpn"
public static let oeck = "oeck"
public static let pia = "pia"
public static let protonvpn = "protonvpn"