Skip to content

Releases: MiEcosystem/miot-plugin-sdk

SDK 10012

05 Jun 08:40
1f41cfb
Compare
Choose a tag to compare

Test APP

iOS-IPA

Android-app

password: keliyuan


added

Host.getPhoneScreenInfo

Android 下获取屏幕信息的API

UI/MHImage

新增图片模块,用于处理iOS/Android下的图片放大模糊问题,以及Android下切换图片的闪烁问题。


updated

  • fix: android 印尼语 匹配正则表达式有误
  • fix: smarthome.deleteMember 无效问题

SDK_10011

27 May 03:15
Compare
Choose a tag to compare

Test APP

iOS-IPA

Android-app

password: keliyuan


added

Host.file.generateObjNameAndUrlForLogFileFDSUpload

用于生成日志上传文件的url

Device.deleteDevices

批量删除设备

Service.smarthome.getDeviceDataRaw

App获取设备上报操作记录

Service.smarthome.createSeSession

透传米家APP与小米支付创建session

Service.smarthome.replaceSEISDkey

透传替换ISD key

Service.smarthome.resetLockPrimaryKey

透传锁主密钥重置

Service.smarthome.handleSEResponse

处理芯片返回


updated

  • fix: xmly category 常量修改
  • fix: titlebar标题过长与小红点位置
  • fix: card 组件阴影问题
  • fix: JSExecutor 支持并发
  • update: 通用设置项「固件升级」去掉二级页面
  • update: 单选框、switch 动效调整
  • update: 通用设置-家庭成员不显示分享

deprecated

  • Host.getCurrentCountry => 改用 Service.getServerName
  • Service.smarthome.getRangeOpenConfig => 改用 Service.smarthome.rangeGetOpenConfig

SDK_10010

29 Apr 09:43
189e2f3
Compare
Choose a tag to compare

Test APP

iOS-IPA password: keliyuan

Android-app


added

Device.loadRealDeviceConfig

获取指定 model 的产品信息数据,目前包含 产品名称、产品icon url、产品的重置UI url。

Host.getCurrentCountry

获取当前手机登录的国家服务器编码

Host.ui.openTimerSettingPageWithOptions

设置指定参数打开定时页面,目前支持timerTitle: 指定定时页面UI title。 displayName: 指定定时的scene名称,用于自动化日志显示。

Host.ui.openPowerMultikeyPage

跳转多键开关页面

Service.scene.loadScenesHistoryForDevice

获取指定设备的智能日志信息。

Service.smarthome.getDeviceSettingV2

获取服务器中 device 对应的数据, 替换 getDeviceSetting 使用。

Service.smarthome.setUserPDData

设置用户信息

Service.smarthome.getUserPDData

获取用户信息

UI组件-Card 带阴影的卡片

demo 参考 projects/com.xiaomi.demo/Main/UIComponent/UIDemo.js


updated

  • fix: iOS rssi undefine
  • fix: TJInfra 返回数据格式统一
  • fix: localPing 的异常返回
  • fix: Andrdoi下getUserInfo无法获取UID
  • fix: isBleGatewayConnected undefine on iOS

deprecated

  • Host.ui.openNewMorePage => 建议使用 CommonSetting 统一UI
  • Service.smarthome.getDeviceSetting => 改用 Service.smarthome.getDeviceSettingV2
  • Service.smarthome.getAppConfigV2 => 改用 Service.smarthome.getAppConfig

SDK_10005

29 Apr 09:05
b9a6fef
Compare
Choose a tag to compare

added

  • API-Device.isBinded
  • Api-Service.smarthome.getUserInfoList
  • API-Service.smarthome.batchGetDeviceDatas
  • API-Service.smarthome.batchSetDeviceDatas
  • API-Service.smarthome.getIDFY
  • API-Service.smarthome.editIDFY
  • API-Service.smarthome.getRangeOpenConfig
  • API-Service.smarthome.createMember
  • API-Service.smarthome.updateMember
  • API-Service.smarthome.deleteMember
  • API-Service.smarthome.loadMembers

deprecated

  • getDevicesConfig -> batchGetDeviceDatas
  • delDevicesConfig 不再提供删除方法,batchGetDeviceDatas会在解绑时自动删除
  • 废弃UI控件TitleBarBlack & TitleBarWhite 改用TitleBar

SDK_10004

29 Apr 09:05
Compare
Choose a tag to compare

added

  • API-Bluetooth.encryptMessageWithToken 设备token加密指定数据
  • API-Bluetooth.decryptMessageWithToken 设备token解密指定数据
  • API-Bluetooth.isConnecting 蓝牙是否正在连接
  • API-Device.getSubDevices 获取子设备列表
  • API-Host.file.generateObjNameAndUrlForFDSUpload 生成上传凭据
  • API-Host.file.getFDSFileInfoWithObjName 获取FDS上传
  • API-Host.ui.showBLESwitchGuide 弹出 打开蓝牙示意UI iOS Only
  • API-Host.ui.dismissBLESwitchGuide 关闭蓝牙示意 iOS Only
  • API-Host.ui.openDeviceGroupPageForCreate 跳转组设备创建
  • API-Host.ui.openDeviceGroupPageForEdit 跳转组设备编辑
  • API-Host.ui.openConnectSucceedPage 跳转快连成功页面
  • API-Service.smarthome.getLatestVersionV2 => /v2/device/latest_ver
  • API-Service.smarthome.delDeviceData => user/del_user_device_data
  • API-Service.smarthome.getUserDeviceLog => /v2/user/get_user_device_log
  • API-Service.smarthome.setDeviceProp => /v2/device/set_props
  • API-Service.smarthome.insertunmodel => /yaokan/insertunmodel
  • UI组件-CommonSetting 通用设置
  • UI组件-FirmwareUpgrade 固件升级
  • UI组件-MoreSetting 二级菜单-更多设置
  • UI组件-ListItem 普通列表项

changed

  • fix: 撤销授权插件出错问题
  • fix: crypto callback返回undefine问题
  • fix: 音频录制播放文件路径问题
  • update: getUserInfo 增加uid返回

deprecated

  • openTimerSettingPage -> openTimerSettingPageWithVariousTypeParams
  • openTimerSettingPageWithCustomIdentifier -> openTimerSettingPageWithVariousTypeParams

SDK_10003

29 Apr 09:04
Compare
Choose a tag to compare

added

  • API-Device.requestAuthorizedDeviceListData
  • API-Host.ui.addOrCopyIR
  • API-Service.smarthome.thirdSyncCall
  • API-Service.smarthome.bindNFCCard
  • API-Service.smarthome.getNFCCard
  • API-Service.spec.getCurrentSpecValue
  • UI组件-miot/ui/NumberSpinner 数字选择器

SDK_10002

29 Apr 09:04
Compare
Choose a tag to compare

added

  • API-Host.createBackgroundExecutor 创建新的线程执行JS文件
  • API-Host.ui.openPhoneBluSettingPage 打开手机蓝牙设置页面 Android Only
  • API-Service.smarthome.rangeGetOpenConfig => /v2/home/range_get_open_config
  • API-Service.smarthome.deviceSetExtraData => /v2/device/set_extra_data
  • API-Service.smarthome.editUserColl => /user/edit_user_coll

SDK_10001

29 Apr 09:02
Compare
Choose a tag to compare

added

  • API-Service.smarthome.getUserDeviceDataTab 分页获取devicedata
  • API-Host.crypto.colorsToImageBase64 将base64地图文件内容转为图片

changed

  • fix: 导航栏闪现蓝色图标
  • fix: Device lastVersion

SDK_10000

29 Apr 08:18
Compare
Choose a tag to compare

added

  • 支持所有未带有@since标签的API