Browse Source

修复 OtaFeature 的 otaFunc label

Swift importer 的 omit-needless-words 规则把 Obj-C selector 段
`withEntityM:` 简化成 `with:`(因为后缀 EntityM 与参数类型 JL_EntityM
重复)。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
weicu
liwei1dao 5 months ago
parent
commit
743fdff68d
  1. 5
      local_plugins/device_jieli/ios/Classes/Feature/OtaFeature.swift

5
local_plugins/device_jieli/ios/Classes/Feature/OtaFeature.swift

@ -52,8 +52,11 @@ class OtaFeature {
let cb: JL_OTA_RT = { [weak self] result, progress in
self?.onOtaCallback(result: result, progress: progress)
}
// 注意 label:Obj-C selector `otaFuncWithEntityM:withFilePath:Result:`
// 经 Swift importer 的 omit-needless-words 规则把 `EntityM` 去掉(与
// 参数类型 JL_EntityM 尾部重复),第一个 label 变成 `with:`。
server.bleMultiple.otaFunc(
withEntityM: entity,
with: entity,
withFilePath: firmwareFilePath,
result: cb
)

Loading…
Cancel
Save