主要改动: - DemoSecrets 默认值对齐 iOS:owner=xmly, scanNamePrefix=Duooomi- - userId 默认值对齐:Cjgex9kTTTJq9u9RMOnc5hiIZTvrOOq3 - Config 区可在运行时编辑 owner/apiKey/scanPrefix,SharedPreferences 持久化;Reload SDK 按钮重建实例(旧 SDK 自动 disconnect) - PlayMode 行:显示当前模式标签(循环 / 单播)+ Single/Loop 按钮 - Firmware OTA:3 个独立输入(sn/currentVersion/userId) +「回填当前 状态」+「拉取安装包」+「安装」三按钮,对齐 iOS WrapperTestView - bind 完成 / version 更新自动回填 OTA 入参 - UpgradeRecords 4 状态展示:待上报 / ✅ 正确上报 / ❌ 错误上报 (版本不匹配) / 过期放弃 - 保留先前加的 Info+Ver 并发按钮(async 同时发 getDeviceInfo + getVersion,验证不同 commandType 通道并发不冲突) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
12 lines
334 B
Kotlin
12 lines
334 B
Kotlin
package com.duooomi.ble.demo
|
|
|
|
/**
|
|
* Copy this file to `demo/src/main/kotlin/com/duooomi/ble/demo/DemoSecrets.kt`
|
|
* (already gitignored) and fill in real credentials.
|
|
*/
|
|
object DemoSecrets {
|
|
const val API_KEY: String = "<paste-api-key>"
|
|
const val OWNER: String = "xmly"
|
|
const val SCAN_NAME_PREFIX: String = "Duooomi-"
|
|
}
|