@aiot-toolkit/emulator 2.0.5-beta.19 → 2.0.5-beta.20

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.
@@ -57,14 +57,14 @@ const VelaImageVersionList = exports.VelaImageVersionList = [{
57
57
  label: 'vela-miwear-watch-5.0',
58
58
  description: '适用于手表/手环的,带表盘的 vela 5.0 镜像,不可自定义模拟器尺寸',
59
59
  value: _Vvd.VelaImageType.VELA_MIWEAR_WATCH_5,
60
- time: '20250605',
60
+ time: '20250612',
61
61
  hide: false,
62
62
  icon: ''
63
63
  }, {
64
64
  label: 'vela-watch-5.0',
65
65
  description: '适用于手表/手环的,不带表盘的 vela 5.0 镜像,可自定义模拟器尺寸',
66
66
  value: _Vvd.VelaImageType.VELA_WATCH_5,
67
- time: '20250605',
67
+ time: '20250612',
68
68
  hide: false,
69
69
  icon: ''
70
70
  }, {
@@ -103,7 +103,7 @@ export declare enum SDKParts {
103
103
  MODEM_SIMULATOR = "modem_simulator"
104
104
  }
105
105
  export declare enum VELAHOME {
106
- SDK = ".export",
106
+ SDK = ".vela/sdk",
107
107
  VVD = ".vela/vvd"
108
108
  }
109
109
  export type SDKDownloadOpt = {
package/lib/typing/Vvd.js CHANGED
@@ -27,7 +27,7 @@ let SDKParts = exports.SDKParts = /*#__PURE__*/function (SDKParts) {
27
27
  return SDKParts;
28
28
  }({});
29
29
  let VELAHOME = exports.VELAHOME = /*#__PURE__*/function (VELAHOME) {
30
- VELAHOME["SDK"] = ".export";
30
+ VELAHOME["SDK"] = ".vela/sdk";
31
31
  VELAHOME["VVD"] = ".vela/vvd";
32
32
  return VELAHOME;
33
33
  }({});
package/lib/vvd/index.js CHANGED
@@ -471,10 +471,9 @@ class VvdManager {
471
471
 
472
472
  // 利用 readline 接口可解决子进程日志换行的问题
473
473
  const readlines = (0, _logcat.attachReadline)(emulatorProcess, onStdout, onErrout);
474
- const emulatorStartedHandler = async msg => {
474
+ const emulatorStartedHandler = msg => {
475
475
  if (func(msg)) {
476
- const runningVvds = await (0, _emulatorutil.getRunningVvds)();
477
- const e = runningVvds.find(e => e['avd.id'] === vvdName);
476
+ const e = (0, _emulatorutil.getRunningAvdConfigByName)(vvdName);
478
477
  if (e) {
479
478
  const emulatorInstance = (0, _instance.findInstance)(vvdInfo.imageType, {
480
479
  serialPort: e['port.serial'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiot-toolkit/emulator",
3
- "version": "2.0.5-beta.19",
3
+ "version": "2.0.5-beta.20",
4
4
  "description": "vela emulator tool.",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -36,7 +36,7 @@
36
36
  "emulator"
37
37
  ],
38
38
  "dependencies": {
39
- "@aiot-toolkit/shared-utils": "2.0.5-beta.19",
39
+ "@aiot-toolkit/shared-utils": "2.0.5-beta.20",
40
40
  "@grpc/grpc-js": "^1.13.3",
41
41
  "@grpc/proto-loader": "^0.7.13",
42
42
  "@miwt/adb": "0.10.1",
@@ -53,5 +53,5 @@
53
53
  "@types/adm-zip": "^0.5.5",
54
54
  "@types/ini": "^4.1.1"
55
55
  },
56
- "gitHead": "a0db41174e2ccc9750a8422bed0bc3392965407d"
56
+ "gitHead": "e34506862fb5e24eb86b4a4aa67fa88bb76f6114"
57
57
  }