aiot-toolkit 2.0.3-beta.10 → 2.0.3-beta.11

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.
@@ -3,7 +3,7 @@ import IBuilder from './IBuilder';
3
3
  import UxBuilderBase, { IUxBuildOption } from './UxBuilderBase';
4
4
  export interface IVelaUxBuilderOption extends IUxBuildOption {
5
5
  watch?: boolean;
6
- enableJsc: boolean;
6
+ enableJsc?: boolean;
7
7
  enableE2e?: boolean;
8
8
  enableStats?: boolean;
9
9
  optimizeCssAttr?: boolean;
@@ -129,7 +129,7 @@ class VelaUxStarter extends _IStarter.default {
129
129
  const projectInfo = _aiotpack.UxFileUtils.getMainfestInfo(projectPath, compilerOption.sourceRoot);
130
130
  if (this.lastRpk && _fsExtra.default.existsSync(this.lastRpk)) {
131
131
  const targetPath = await this.emulatorInstance?.pushRpk(this.lastRpk, projectInfo.package);
132
- await this.emulatorInstance?.install(targetPath);
132
+ await this.emulatorInstance?.install(targetPath, projectInfo.package);
133
133
  await this.emulatorInstance?.startApp(projectInfo.package, options.devtool);
134
134
  }
135
135
  this.event.on('buildSuccess', async data => {
@@ -140,7 +140,7 @@ class VelaUxStarter extends _IStarter.default {
140
140
  await this.emulatorInstance?.reloadApp(projectInfo.package);
141
141
  } else if (data.info?.trigger === _FileLaneTriggerType.default.START && data.info.rpk) {
142
142
  const targetPath = await this.emulatorInstance?.pushRpk(data.info.rpk, projectInfo.package);
143
- await this.emulatorInstance?.install(targetPath);
143
+ await this.emulatorInstance?.install(targetPath, projectInfo.package);
144
144
  await this.emulatorInstance?.startApp(projectInfo.package, options.devtool);
145
145
  }
146
146
  });
@@ -57,7 +57,7 @@ class VelaVvdUtils {
57
57
  })
58
58
  });
59
59
  // skin或者size
60
- let skin = '';
60
+ let skin;
61
61
  let width = '466';
62
62
  let height = '466';
63
63
  // vela4.0不允许自定义分辨率
@@ -73,7 +73,7 @@ class VelaVvdUtils {
73
73
  choices: skinList.map(item => {
74
74
  return {
75
75
  name: item.name,
76
- value: item.name,
76
+ value: item,
77
77
  description: item.name
78
78
  };
79
79
  })
@@ -92,7 +92,7 @@ class VelaVvdUtils {
92
92
  const vvdManager = new _emulator.VvdManager({
93
93
  sdkHome: VelaVvdUtils.sdkHome
94
94
  });
95
- if ((await vvdManager.hasSDKChildrenUpdate()).length > 0) {
95
+ if ((await vvdManager.hasSDKPartUpdate()).length > 0) {
96
96
  const downloder = await vvdManager.downloadSDK({
97
97
  force: false,
98
98
  cliProgress: true,
@@ -100,17 +100,18 @@ class VelaVvdUtils {
100
100
  });
101
101
  await downloder.downlodPromise;
102
102
  }
103
- const imageDir = _path.default.resolve(VelaVvdUtils.sdkHome, _emulator.SDKChildren.SYSTEM_IMAGES, velaImage);
103
+ const imageDir = _path.default.resolve(VelaVvdUtils.sdkHome, _emulator.SDKParts.SYSTEM_IMAGES, velaImage);
104
104
 
105
105
  // 创建vvd文本文件
106
106
  const vvdParams = {
107
107
  name,
108
- skin,
108
+ skin: skin?.name,
109
109
  width,
110
110
  height,
111
111
  arch: _emulator.IVvdArchType.arm,
112
112
  imageDir,
113
113
  imageType: velaImage,
114
+ 'skin.path': skin?.path,
114
115
  customLcdRadius: ''
115
116
  };
116
117
  VelaVvdUtils.vvdManager.createVvd(vvdParams);
@@ -120,7 +121,7 @@ class VelaVvdUtils {
120
121
  }
121
122
  }
122
123
  static async checkEmulatorEnv() {
123
- return (await this.vvdManager.hasSDKChildrenUpdate()).length === 0;
124
+ return (await this.vvdManager.hasSDKPartUpdate()).length === 0;
124
125
  }
125
126
 
126
127
  /** 初始化/重置模拟器环境 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiot-toolkit",
3
- "version": "2.0.3-beta.10",
3
+ "version": "2.0.3-beta.11",
4
4
  "description": "Tools for creating, developing, and packaging aiot applications.",
5
5
  "keywords": [
6
6
  "aiot"
@@ -22,14 +22,14 @@
22
22
  "test": "node ./__tests__/aiot-toolkit.test.js"
23
23
  },
24
24
  "dependencies": {
25
- "@aiot-toolkit/aiotpack": "2.0.3-beta.10",
26
- "@aiot-toolkit/commander": "2.0.3-beta.10",
27
- "@aiot-toolkit/emulator": "2.0.3-beta.10",
28
- "@aiot-toolkit/shared-utils": "2.0.3-beta.10",
25
+ "@aiot-toolkit/aiotpack": "2.0.3-beta.11",
26
+ "@aiot-toolkit/commander": "2.0.3-beta.11",
27
+ "@aiot-toolkit/emulator": "2.0.3-beta.11",
28
+ "@aiot-toolkit/shared-utils": "2.0.3-beta.11",
29
29
  "@inquirer/prompts": "^5.3.0",
30
30
  "@miwt/adb": "^0.9.0",
31
31
  "axios": "^1.7.4",
32
- "file-lane": "2.0.3-beta.10",
32
+ "file-lane": "2.0.3-beta.11",
33
33
  "fs-extra": "^11.2.0",
34
34
  "koa-router": "^13.0.1",
35
35
  "lodash": "^4.17.21",
@@ -43,5 +43,5 @@
43
43
  "@types/qr-image": "^3.2.9",
44
44
  "@types/semver": "^7.5.8"
45
45
  },
46
- "gitHead": "e591934b19bc474453ce11b63f0c8bb0d8eb8bd9"
46
+ "gitHead": "3c249a6cc68ad4881bc627aaae6120ab27605b2d"
47
47
  }