hunter-open-sdk 2.0.0-beta.28 → 2.0.0-beta.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/abilities/eventManager/index.js +12 -4
- package/lib/abilities/getUltimateReport/index.js +1 -1
- package/lib/constants/index.js +3 -1
- package/lib/resources/dll/{libinspectionkit_x64_0.6.0.dll → libinspectionkit_x64_0.6.1.dll} +0 -0
- package/lib/resources/dylib/{libinspectionkit_amd64_0.6.0.dylib → libinspectionkit_amd64_0.6.1.dylib} +0 -0
- package/lib/resources/dylib/{libinspectionkit_arm64_0.6.0.dylib → libinspectionkit_arm64_0.6.1.dylib} +0 -0
- package/lib/resources/version.online +1 -1
- package/package.json +1 -1
|
@@ -325,10 +325,18 @@ const registerEvent = async (params, callBack) => {
|
|
|
325
325
|
});
|
|
326
326
|
_deviceHelper.deviceHelper.removeUdid(udid);
|
|
327
327
|
}).on('error', function (err) {
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
328
|
+
const errStr = 'usb连接错误:' + JSON.stringify(err);
|
|
329
|
+
console.log(errStr);
|
|
330
|
+
Sentry.captureException(errStr);
|
|
331
|
+
saasCallBack({
|
|
332
|
+
data: {
|
|
333
|
+
eventName: _constants.EVENT_TYPE.USB_ERROR,
|
|
334
|
+
eventCode: -1,
|
|
335
|
+
eventContent: JSON.stringify({
|
|
336
|
+
message: errStr
|
|
337
|
+
})
|
|
338
|
+
}
|
|
339
|
+
});
|
|
332
340
|
});
|
|
333
341
|
};
|
|
334
342
|
exports.registerEvent = registerEvent;
|
|
@@ -47,7 +47,7 @@ let entity = null;
|
|
|
47
47
|
* 获取终极报告
|
|
48
48
|
* @param {Object} params - 请求参数
|
|
49
49
|
* @param {string} params.udid - 设备 UDID
|
|
50
|
-
* @param {string} [params.simpleReportId] - 普通报告 ID
|
|
50
|
+
* @param {string} [params.simpleReportId] - 普通报告 ID,传空串时服务端不进行删除操作
|
|
51
51
|
* @param {Function} callback - 回调函数,接收报告结果
|
|
52
52
|
*/
|
|
53
53
|
function getUltimateReport(params, callback) {
|
package/lib/constants/index.js
CHANGED
|
@@ -22,5 +22,7 @@ const EVENT_TYPE = exports.EVENT_TYPE = {
|
|
|
22
22
|
/** 获取 Android SN 结果:eventCode 0 成功,-1 失败;成功时 eventContent: { SN, brand } */
|
|
23
23
|
GET_ANDROID_SN_RESULT: 'type_get_android_sn_result',
|
|
24
24
|
/** 设备 USB 断开(iOS / Android):eventCode 0 已拔出 */
|
|
25
|
-
USB_DISCONNECT: 'type_usb_disconnect'
|
|
25
|
+
USB_DISCONNECT: 'type_usb_disconnect',
|
|
26
|
+
/** USB 监听发生错误:eventCode -1,eventContent.message 为错误信息 */
|
|
27
|
+
USB_ERROR: 'type_usb_error'
|
|
26
28
|
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
0.6.
|
|
1
|
+
0.6.1
|