Allow Oeck provider without purchase
This commit is contained in:
parent
db95bda84a
commit
7287fb33c8
|
@ -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/),
|
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).
|
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)
|
## 1.17.0 Beta 2812 (2021-10-11)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -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/),
|
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).
|
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)
|
## 1.17.0 Beta 2812 (2021-10-11)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -227,6 +227,9 @@ public class ProductManager: NSObject {
|
||||||
throw ProductError.beta
|
throw ProductError.beta
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
guard metadata.name != .oeck else {
|
||||||
|
return
|
||||||
|
}
|
||||||
guard isEligible(forFeature: metadata.product) else {
|
guard isEligible(forFeature: metadata.product) else {
|
||||||
throw ProductError.uneligible
|
throw ProductError.uneligible
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,6 +39,8 @@ extension Infrastructure.Name {
|
||||||
|
|
||||||
public static let nordvpn = "nordvpn"
|
public static let nordvpn = "nordvpn"
|
||||||
|
|
||||||
|
public static let oeck = "oeck"
|
||||||
|
|
||||||
public static let pia = "pia"
|
public static let pia = "pia"
|
||||||
|
|
||||||
public static let protonvpn = "protonvpn"
|
public static let protonvpn = "protonvpn"
|
||||||
|
|
Loading…
Reference in New Issue