liwei1dao
|
5af13c0872
|
修复 iOS Swift 编译错误
三类问题:
1. JieliEventListener 是 @objc protocol 但参数类型 [String: Any?] 无法
桥接到 Obj-C → 改成纯 Swift protocol(去掉 @objc),同 module 内
InternalCleanupListener 仍能正常实现
2. 内部类型(EventDispatcher / TranslationCoordinator / TranslationAudio
Bridge / EventChannelAudioBridge / 各 Feature 类)声明了 public 但同
时引用了 internal 类型 → 把 plugin 内部所有 public 全部降为 internal
(Flutter entry JielihomePlugin / DevicePluginInterfacePlugin 仍保留
public 因为 Flutter 注册需要)
3. JL_BLEMultiple.otaFunc(...) 的 Result 参数是 nullable closure
(JL_OTA_RT __nullable),Swift 不接受给 nullable closure 用 trailing
closure 语法 → 改成显式 closure 字面量赋给 cb 变量再传入
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
5 months ago |
liwei1dao
|
9483dd412b
|
重新添加 device_jieli 独家 vendor 的 framework
之前 commit d4eaa42ac 为避免与 ota plugin 冲突删了这 4 个 xcframework,
现在 ota plugin 已废弃 → 由 device_jieli 独家提供:
- JL_OTALib.xcframework (v2.4.1)
- JL_AdvParse.xcframework
- JL_HashPair.xcframework
- JLLogHelper.xcframework
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
5 months ago |
liwei1dao
|
ed2ef5a8fd
|
废弃 ota plugin,OTA 升级全部走 device_jieli
- ota plugin 用的是 JL_OTALib v1.0 旧版静态库,跟 device_jieli 引入的
v2.4.1 xcframework ABI 不兼容,且 framework 同名导致 CocoaPods 在
build phase 双拷贝 → "Multiple commands produce" 错误
- 把 lib/modules/ota_upgrade/controllers/ota_upgrade_controller.dart
迁到 device_jieli 的 OTA API(otaStart/otaCancel + OtaStateEvent /
OtaErrorEvent),事件 schema 重新映射到 OtaCoreService 状态码
- pubspec.yaml 移除 ota 依赖,整个 local_plugins/ota/ 目录将在下一个
commit 删除
- device_jieli.podspec 重新加回 JL_OTALib / JL_AdvParse / JL_HashPair /
JLLogHelper(之前为避免与 ota plugin 冲突而删了 vendor,现在 ota 废
弃后由 device_jieli 独家提供,与 ble_service 提供的 JLAudioUnitKit
共存且不冲突)
- device_plugin_interface.podspec 修掉空 LICENSE 引用警告
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
5 months ago |
liwei1dao
|
d4eaa42ac4
|
修复 Multiple commands produce 错误
device_jieli.podspec 原本 vendor 了 7 个 xcframework,但其中 5 个跟其他
本地 plugin 重复(CocoaPods 不会自动去重):
- JL_OTALib / JL_AdvParse / JL_HashPair / JLLogHelper —— ota plugin 已有
- JLAudioUnitKit —— ble_service plugin 的 SPM binary target 已有
只保留 device_jieli 独家依赖:JL_BLEKit + JLAV2Lib。删除 Frameworks/ 内
重复的 xcframework 副本以避免误用。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
5 months ago |
liwei1dao
|
5c9a1dc618
|
上传jieli iOS SDK 的 xcframework 二进制
包含 JL_BLEKit / JL_OTALib / JL_AdvParse / JL_HashPair / JLLogHelper /
JLAudioUnitKit / JLAV2Lib —— 与 Android 端 .aar 同样直接随仓库分发。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
5 months ago |
liwei1dao
|
ac6740014e
|
上传jieli sdk的iOS适配代码
完整复刻 Android 端架构,接通三大业务模块:
- 通话翻译(mono + stereo,含立体声自动升级)
- AI 助理(MODE_ONLY_RECORD + recordtype=byDevice 始终录音)
- 会议记录的通话录音(MODE_CALL_TRANSLATION 双声道)
MethodChannel / EventChannel schema 与 Android 完全一致,Dart 层无需改动。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
5 months ago |