You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
902 B

// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "ble_service",
platforms: [.iOS("16.0")],
products: [
.library(name: "ble-service", targets: ["ble_service"])
],
dependencies: [
// YbridOpus SPM 包(替代CocoaPods依赖)
.package(url: "https://github.com/ybrid/opus-swift.git", from: "0.8.0")
],
targets: [
.target(
name: "ble_service",
dependencies: [
.product(name: "YbridOpus", package: "opus-swift")
],
path: "Sources/ble_service",
linkerSettings: [
.linkedFramework("AVFoundation"),
.linkedFramework("AudioToolbox"),
.linkedFramework("CoreBluetooth"),
.linkedFramework("AccessorySetupKit", .when(platforms: [.iOS], configuration: .release)),
.linkedFramework("AccessorySetupKit", .when(platforms: [.iOS], configuration: .debug))
]
)
]
)