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.
29 lines
783 B
29 lines
783 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")
|
|
// 移除 AccessorySetupKit 链接,因为它只在 iOS 18+ 可用
|
|
]
|
|
)
|
|
]
|
|
)
|