@aiot-toolkit/emulator 2.0.6-beta.18 → 2.0.6-beta.19
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.
|
@@ -27,7 +27,6 @@ Object.defineProperty(exports, "isVelaImageType", {
|
|
|
27
27
|
});
|
|
28
28
|
var _os = _interopRequireDefault(require("os"));
|
|
29
29
|
var _path = _interopRequireDefault(require("path"));
|
|
30
|
-
var _https = _interopRequireDefault(require("https"));
|
|
31
30
|
var _Vvd = require("../typing/Vvd");
|
|
32
31
|
var _utils = require("../utils");
|
|
33
32
|
var _shared = require("../shared");
|
|
@@ -51,15 +50,8 @@ async function getSdkUrl() {
|
|
|
51
50
|
const internalBaseUrl = 'https://cnbj3-fusion-fds.api.xiaomi.net/vela-ide';
|
|
52
51
|
// 优先使用内网域名,因为云上工程没有外网环境
|
|
53
52
|
let base = internalBaseUrl;
|
|
54
|
-
await
|
|
55
|
-
|
|
56
|
-
timeout: 2000
|
|
57
|
-
}, res => {
|
|
58
|
-
if (res.statusCode !== 200) {
|
|
59
|
-
base = externalBaseUrl;
|
|
60
|
-
}
|
|
61
|
-
resolve();
|
|
62
|
-
});
|
|
53
|
+
await fetch(`${base}/versions.json`).catch(() => {
|
|
54
|
+
base = externalBaseUrl;
|
|
63
55
|
});
|
|
64
56
|
return {
|
|
65
57
|
baseUrl: base,
|
|
@@ -80,14 +72,14 @@ const VelaImageVersionList = exports.VelaImageVersionList = [{
|
|
|
80
72
|
label: 'vela-miwear-watch-5',
|
|
81
73
|
description: '适用于手表/手环的,带表盘的 vela 5.0 镜像,不可自定义模拟器尺寸',
|
|
82
74
|
value: _Vvd.VelaImageType.VELA_MIWEAR_WATCH_5,
|
|
83
|
-
time: '
|
|
75
|
+
time: '20260130',
|
|
84
76
|
hide: false,
|
|
85
77
|
icon: ''
|
|
86
78
|
}, {
|
|
87
79
|
label: 'vela-watch-5',
|
|
88
80
|
description: '适用于手表/手环的,不带表盘的 vela 5.0 镜像,可自定义模拟器尺寸',
|
|
89
81
|
value: _Vvd.VelaImageType.VELA_WATCH_5,
|
|
90
|
-
time: '
|
|
82
|
+
time: '20260127',
|
|
91
83
|
hide: false,
|
|
92
84
|
icon: ''
|
|
93
85
|
}, {
|
|
@@ -115,8 +107,8 @@ const VelaImageVersionList = exports.VelaImageVersionList = [{
|
|
|
115
107
|
label: 'openvela-smartspeaker-5',
|
|
116
108
|
description: '适用于音响的 vela-miwear 5.0 镜像,不可自定义模拟器尺寸',
|
|
117
109
|
value: _Vvd.VelaImageType.OPENVELA_SMARTSPEAKER_5,
|
|
118
|
-
time: '
|
|
119
|
-
hide:
|
|
110
|
+
time: '20260128',
|
|
111
|
+
hide: true,
|
|
120
112
|
icon: ''
|
|
121
113
|
}];
|
|
122
114
|
const EmulatorEnvVersion = exports.EmulatorEnvVersion = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiot-toolkit/emulator",
|
|
3
|
-
"version": "2.0.6-beta.
|
|
3
|
+
"version": "2.0.6-beta.19",
|
|
4
4
|
"description": "vela emulator tool.",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"emulator"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@aiot-toolkit/shared-utils": "2.0.6-beta.
|
|
35
|
+
"@aiot-toolkit/shared-utils": "2.0.6-beta.19",
|
|
36
36
|
"@grpc/grpc-js": "^1.13.3",
|
|
37
37
|
"@grpc/proto-loader": "^0.7.13",
|
|
38
38
|
"@miwt/adb": "0.10.5",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"@types/adm-zip": "^0.5.5",
|
|
51
51
|
"@types/ini": "^4.1.1"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "29d48c29e9b35e01a722868daba622fd74baefc9"
|
|
54
54
|
}
|