Browse Source

上传苹果正在使用的经典蓝牙

newdev_shunjiawei
liwei1dao 1 year ago
parent
commit
eaeae8583e
  1. 3
      local_plugins/classic_bluetooth/ios/Classes/ClassicBluetoothHelper.swift
  2. 2
      pubspec.yaml

3
local_plugins/classic_bluetooth/ios/Classes/ClassicBluetoothHelper.swift

@ -75,7 +75,8 @@ class ClassicBluetoothHelper: NSObject {
for output in outputs where isBluetoothOutput(output.portType) { for output in outputs where isBluetoothOutput(output.portType) {
let device: [String: String] = [ let device: [String: String] = [
"name": output.portName, "name": output.portName,
"address": cleanDeviceAddress(output.uid) "address": cleanDeviceAddress(output.uid),
"isActive": "true" // 在 currentRoute.outputs 中的蓝牙设备都是活跃的
] ]
result.append(device) result.append(device)
} }

2
pubspec.yaml

@ -1,7 +1,7 @@
name: voitrans name: voitrans
description: "Voitrans - AI Voice Assistant." description: "Voitrans - AI Voice Assistant."
publish_to: "none" publish_to: "none"
version: 1.0.3+10 version: 1.0.3+11
environment: environment:
sdk: ">=3.3.0 <4.0.0" sdk: ">=3.3.0 <4.0.0"

Loading…
Cancel
Save