Add requirement-based resolution to index

This commit is contained in:
2025-07-06 18:32:15 +10:00
parent 58d8e648b9
commit 710f0970c5
4 changed files with 73 additions and 2 deletions

View File

@ -5,7 +5,7 @@
import Foundation
internal struct ApkVersionRequirement: Sendable, Hashable {
public struct ApkVersionRequirement: Sendable, Hashable {
let name: String
let versionSpec: ApkVersionSpecification
@ -49,7 +49,7 @@ internal struct ApkVersionRequirement: Sendable, Hashable {
}
extension ApkVersionRequirement: CustomStringConvertible {
var description: String {
public var description: String {
switch self.versionSpec {
case .any(let invert):
"\(invert ? "!" : "")\(self.name)"