// swift-tools-version:5.9 // A WAI native sink in an Apple app: a SwiftUI player whose requests go through the sink, and a // headless replay of a recorded playback session through the same sink. // // The sink is the wai-sink-swift package of the open-standards repository, built once with its // scripts/build-xcframework.sh. WAI_SINK_SWIFT names its directory; by default it is where it // sits beside this example in a clone of the repository. import Foundation import PackageDescription let sdk = ProcessInfo.processInfo.environment["WAI_SINK_SWIFT"] ?? "../../wai-sink-swift" let package = Package( name: "WaiApp", platforms: [.macOS(.v13), .iOS(.v16)], dependencies: [.package(path: sdk)], targets: [ .executableTarget(name: "WaiApp", dependencies: [.product(name: "WaiSink", package: URL(fileURLWithPath: sdk).lastPathComponent)], path: "Sources/WaiApp"), ] )