feat(avlivewire): shared wire package skeleton

This commit is contained in:
L'électron rare
2026-05-18 15:28:42 +02:00
parent d9fb4ac503
commit b15dc75ad5
3 changed files with 27 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "AVLiveWire",
platforms: [.macOS(.v13), .iOS(.v17)],
products: [
.library(name: "AVLiveWire", targets: ["AVLiveWire"]),
],
targets: [
.target(name: "AVLiveWire"),
.testTarget(name: "AVLiveWireTests", dependencies: ["AVLiveWire"]),
]
)
@@ -0,0 +1,5 @@
/// AVLiveWire binary frame format shared by ARBodyTracker (iOS)
/// and AVLiveBody (macOS) over the USB transport.
public enum AVLiveWire {
public static let protocolVersion: UInt8 = 1
}
@@ -0,0 +1,8 @@
import XCTest
@testable import AVLiveWire
final class SmokeTests: XCTestCase {
func testProtocolVersion() {
XCTAssertEqual(AVLiveWire.protocolVersion, 1)
}
}