From 4d3957e68ab237f6c6a51c558874e6c4519ba234 Mon Sep 17 00:00:00 2001 From: "zunda.dev@gmail.com" Date: Sun, 8 Jun 2025 01:53:32 +0900 Subject: [PATCH 1/2] set version in Package.swift --- Package.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index a85595f..922a610 100644 --- a/Package.swift +++ b/Package.swift @@ -24,11 +24,11 @@ var package = Package( dependencies: [ .package( url: "https://github.com/PureSwift/Bluetooth.git", - branch: "master" + from: "7.2.1" ), .package( url: "https://github.com/PureSwift/Socket.git", - branch: "main" + from: "0.4.0" ) ], targets: [ From 28a8f56594e7aff32fbd345244b9a9337f0582b9 Mon Sep 17 00:00:00 2001 From: "zunda.dev@gmail.com" Date: Sun, 8 Jun 2025 02:01:24 +0900 Subject: [PATCH 2/2] fix test --- Tests/BluetoothLinuxTests/L2CAPTests.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Tests/BluetoothLinuxTests/L2CAPTests.swift b/Tests/BluetoothLinuxTests/L2CAPTests.swift index d31f68b..4cad421 100644 --- a/Tests/BluetoothLinuxTests/L2CAPTests.swift +++ b/Tests/BluetoothLinuxTests/L2CAPTests.swift @@ -56,7 +56,7 @@ final class L2CAPTests: XCTestCase { let newConnection = try serverSocket.accept() NSLog("Server Connected") let service = GATTAttribute.Service( - uuid: .deviceInformation, + uuid: BluetoothUUID.Service.deviceInformation, isPrimary: true, characteristics: [ GATTAttribute.Characteristic( @@ -90,11 +90,11 @@ final class L2CAPTests: XCTestCase { ] ) let service2 = GATTAttribute.Service( - uuid: .savantSystems, + uuid: BluetoothUUID.Member.savantSystems, isPrimary: true, characteristics: [ GATTAttribute.Characteristic( - uuid: .savantSystems2, + uuid: BluetoothUUID.Member.savantSystems2, value: GATTManufacturerNameString(rawValue: "PureSwift").data, permissions: [.read, .write], properties: [.read, .write], @@ -103,11 +103,11 @@ final class L2CAPTests: XCTestCase { ] ) let batteryService = GATTAttribute.Service( - uuid: .batteryService, + uuid: BluetoothUUID.Service.battery, isPrimary: true, characteristics: [ GATTAttribute.Characteristic( - uuid: .batteryService, + uuid: BluetoothUUID.Service.battery, value: GATTBatteryLevel(level: .init(rawValue: 95)!).data, permissions: [.read], properties: [.read],