Housekeeping

This commit is contained in:
2024-11-23 18:21:15 +11:00
parent 2eea15fb90
commit d9f5052d21
4 changed files with 2 additions and 6 deletions

View File

@ -20,7 +20,7 @@ public extension ApkIndex {
Self.init(packages: tables.flatMap(\.packages))
}
static func merge(_ tables: Self...) -> ApkIndex {
static func merge(_ tables: Self...) -> Self {
Self.init(packages: tables.flatMap(\.packages))
}
}

View File

@ -3,8 +3,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
import Foundation
public struct ApkIndexDependency: Hashable, Sendable {
let requirement: ApkVersionRequirement

View File

@ -26,9 +26,6 @@ public struct ApkIndexPackage: Hashable, Sendable {
public var downloadFilename: String { "\(self.name)-\(version).apk" }
//TODO: Implementation
//lazy var semanticVersion: (Int, Int, Int) = (0, 0, 0)
init(name: String, version spec: ApkVersionSpecification) {
fatalError("Cannot construct an ApkIndexPackage this way")
}

View File

@ -4,6 +4,7 @@
*/
import Foundation
import Darwin
struct TextFileWriter: TextOutputStream {
private var _hnd: FileHandle