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.
liwei1dao b111124e39 优化接力通话效果 4 months ago
..
android 优化接力通话效果 4 months ago
example 上传新版本的通话翻译代码 5 months ago
ios/device_jieli 上传杰里sdk 代码 5 months ago
lib 上传杰里sdk 代码 5 months ago
.gitignore 上传jieli sdk 的版本优化 5 months ago
.metadata 上传jieli sdk 的版本优化 5 months ago
CHANGELOG.md 上传iOS 的插件包 5 months ago
JIELI_SDK_COMMANDS.md 上传最新的sdk 文件 5 months ago
LICENSE 上传jieli sdk 的版本优化 5 months ago
README.md 上传iOS 的插件包 5 months ago
analysis_options.yaml 上传jieli sdk 的版本优化 5 months ago
pubspec.yaml 上传iOS 的插件包 5 months ago

README.md

device_jieli

Flutter plugin around the JieLi (杰理) RCSP Bluetooth SDK. Provides a vendor-agnostic MethodChannel / EventChannel surface (device_jieli/method, device_jieli/event) so Dart-side code can scan / connect / query / OTA / translate against JieLi earpieces on both Android and iOS.

Platforms

Platform Native SDK Status
Android android/libs/jl_bluetooth_rcsp_*.aar etc. Functional (used in production demo)
iOS ios/Frameworks/JL_BLEKit.xcframework etc. (from JIELI-IOS-Release/Libs) Compiles,真机验证未完成 — see CHANGELOG.md for the per-feature status matrix.

iOS setup

The plugin ships every required .xcframework under ios/Frameworks/. When the upstream SDK in JIELI-IOS-Release/Libs/ updates, mirror the new .xcframework directories on top of ios/Frameworks/ (overwrite is safe) and pod install again in the host app.

Minimum target: iOS 12.

The host app must declare in Info.plist:

<key>NSBluetoothAlwaysUsageDescription</key>
<string>用于连接杰理蓝牙耳机</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>用于连接杰理蓝牙耳机</string>
<key>NSMicrophoneUsageDescription</key>
<string>用于翻译 / 语音助手录音</string>

Channel surface

Dart API lives in lib/device_jieli.dart. Native code on either platform implements the same set of method calls and emits the same event payload schema — the iOS implementation lives in ios/Classes/, the Android implementation in android/src/main/kotlin/com/jielihome/jielihome/.

For background on the RCSP commands and translation pipeline see JIELI_SDK_COMMANDS.md.