mirror of
https://github.com/GayPizzaSpecifications/darwin-apk.git
synced 2025-08-03 13:31:32 +00:00
Actually test requirement parsing output (not just if it succeded)
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
internal struct ApkVersionRequirement: Hashable {
|
||||
internal struct ApkVersionRequirement: Sendable, Hashable {
|
||||
let name: String
|
||||
let versionSpec: ApkVersionSpecification
|
||||
|
||||
|
@ -3,13 +3,13 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
enum ApkVersionSpecification: Equatable, Hashable {
|
||||
case any(invert: Bool)
|
||||
case constraint(invert: Bool, op: Operator, version: String)
|
||||
enum ApkVersionSpecification: Equatable, Hashable, Sendable {
|
||||
case any(invert: Bool = false)
|
||||
case constraint(invert: Bool = false, op: Operator, version: String)
|
||||
}
|
||||
|
||||
extension ApkVersionSpecification {
|
||||
enum Operator: Equatable {
|
||||
enum Operator: Equatable, Sendable {
|
||||
case equals
|
||||
case fuzzyEquals
|
||||
case greater
|
||||
|
Reference in New Issue
Block a user