更新记录
1.0.2(2025-04-01)
- 【增加】增加权限列表
1.0.1(2025-04-01)
- 【新增】增加示例git demo
- 【新增】增加示例图
1.0.0(2025-04-01)
- 【新增】初始化第一版本,增加基础使用功能函数,适配安卓
- 【预告】下个版本将支持iOS端
平台兼容性
uni-app
| Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
|---|---|---|---|---|---|---|---|---|
| √ | √ | - | - | - | - | 5.0 | × | × |
| 微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
|---|---|---|---|---|---|---|---|---|---|---|
| - | - | - | - | - | - | - | - | - | - | - |
uni-app x
| Chrome | Safari | Android | iOS | 鸿蒙 | 微信小程序 |
|---|---|---|---|---|---|
| - | - | 5.0 | × | × | - |
腾讯Bugly SDK
使用文档
方法列表
| 名称 | 参数 | 默认值 | 介绍 | 兼容平台 |
|---|---|---|---|---|
| initCrashReport | options:X_BUGLY_OPTIONS | - | 初始化 | Android |
| setDeviceID | options:X_BUGLY_OPTIONS | - | 设置设备id | Android |
| setDeviceModel | options:X_BUGLY_OPTIONS | - | 设置设备型号 | Android |
| setAppInfo | options:X_BUGLY_OPTIONS | - | 设置App版本、渠道、包名 | Android |
| setAppReportDelay | options:X_BUGLY_OPTIONS | - | 设置Bugly初始化延迟 | Android |
| setAnrTrace | options:X_BUGLY_OPTIONS | - | 设置anr trace采集 | Android |
| setAllThreadStackEnable | options:X_BUGLY_OPTIONS | - | 设置crash和anr时是否获取全部堆栈 | Android |
| setUserSceneTag | options:X_BUGLY_OPTIONS | - | 设置标签 | Android |
| putUserData | options:X_BUGLY_OPTIONS | - | 设置自定义Map参数 | Android |
X_BUGLY_OPTIONS 参数
| 名称 | 类型 | 介绍 | 关联函数 | 兼容平台 |
|---|---|---|---|---|
| appid | string | 产品的appid | initCrashReport | Android |
| debug | boolean | 是否开启debug模式 | initCrashReport | Android |
| deviceId | string | 设备id | setDeviceID | Android |
| deviceModel | string | 设备型号 | setDeviceModel | Android |
| appChannel | string | 渠道 | setAppInfo | Android |
| appVersion | string | app版本 | setAppInfo | Android |
| appPackage | string | app包名 | setAppInfo | Android |
| appReportDelay | number | 初始化延迟时间(单位ms) | setAppReportDelay | Android |
| catchAnrTrace | boolean | 设置anr时是否获取系统trace文件 | setAnrTrace | Android |
| recordAnrMainStack | boolean | 设置是否获取anr过程中的主线程堆栈 | setAnrTrace | Android |
| crashEnable | boolean | 设置crash和anr时是否获取全部堆栈 | setAllThreadStackEnable | Android |
| anrEnable | boolean | 设置crash和anr时是否获取全部堆栈 | setAllThreadStackEnable | Android |
| userSceneTag | number | 标签标识 | setUserSceneTag | Android |
| userKey | string | 自定义Map Key | putUserData | Android |
| userValue | string | 自定义Map Value | putUserData | Android |
| success | (result:X_BUGLY_RESULT)=>void | 回调成功 | - | Android |
| fail | (result:X_BUGLY_RESULT)=>void | 回调失败 | - | Android |

收藏人数:
https://gitee.com/uts-plugins/x-bugly-s.git
https://gitee.com/uts-plugins/x-bugly-s.git
购买源码授权版(
试用
赞赏(0)
下载 560
赞赏 5
下载 10632388
赞赏 1792
赞赏
京公网安备:11010802035340号