make ApkIndexDependency conform to ApkIndexRequirementRef

dunno if this is necessary for the graph to work but we'll see
This commit is contained in:
2024-11-10 21:00:07 +11:00
parent d6b0acf807
commit e7fc47d640
6 changed files with 17 additions and 28 deletions

View File

@ -5,7 +5,7 @@
import Foundation
struct ApkIndexPackage: Hashable {
struct ApkIndexPackage: ApkIndexRequirementRef {
let indexChecksum: ApkIndexDigest
let name: String
let version: String
@ -28,6 +28,10 @@ struct ApkIndexPackage: Hashable {
//TODO: Implementation
//lazy var semanticVersion: (Int, Int, Int) = (0, 0, 0)
init(name: String, version spec: ApkVersionSpecification) {
fatalError("Cannot construct an ApkIndexPackage this way")
}
}
extension ApkIndexPackage {