@arkts/image-manager 0.5.12-beta.1 → 0.5.12-beta.3
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/dist/index.cjs +7 -7
- package/dist/index.mjs +7 -7
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -32,7 +32,7 @@ let base64_js = require("base64-js");
|
|
|
32
32
|
let vscode_fs = require("vscode-fs");
|
|
33
33
|
|
|
34
34
|
//#region package.json
|
|
35
|
-
var version = "0.5.12-beta.
|
|
35
|
+
var version = "0.5.12-beta.3";
|
|
36
36
|
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/common/serializable-content.ts
|
|
@@ -303,10 +303,10 @@ var EmulatorFileImpl = class extends SerializableFileImpl {
|
|
|
303
303
|
const pushDeviceItem = (item) => {
|
|
304
304
|
if (EmulatorBasicItem.is(item)) {
|
|
305
305
|
if (options.apiVersion && item.getContent().api === options.apiVersion && options.deviceType && item.getContent().deviceType === options.deviceType) items.push(item);
|
|
306
|
-
} else if (EmulatorFoldItem.is(item)) {
|
|
307
|
-
if (options.apiVersion && item.getContent().api === options.apiVersion && options.deviceType && item.getContent().deviceType === options.deviceType) items.push(item);
|
|
308
306
|
} else if (EmulatorTripleFoldItem.is(item)) {
|
|
309
307
|
if (options.apiVersion && item.getContent().api === options.apiVersion && options.deviceType && item.getContent().deviceType === options.deviceType) items.push(item);
|
|
308
|
+
} else if (EmulatorFoldItem.is(item)) {
|
|
309
|
+
if (options.apiVersion && item.getContent().api === options.apiVersion && options.deviceType && item.getContent().deviceType === options.deviceType) items.push(item);
|
|
310
310
|
}
|
|
311
311
|
};
|
|
312
312
|
for (const item of this.getItems()) if (EmulatorGroupItem.is(item)) for (const child of item.getChildren()) pushDeviceItem(child);
|
|
@@ -976,9 +976,9 @@ var LocalImageImpl = class extends BaseImageImpl {
|
|
|
976
976
|
"hw.cpu.arch": this.getImageManager().getArch(),
|
|
977
977
|
"hw.cpu.ncore": listFileItem.getContent()?.cpuNumber,
|
|
978
978
|
"hw.lcd.density": emulatorDeviceItem.getContent()?.density?.toFixed(),
|
|
979
|
-
"hw.lcd.single.diagonalSize": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.singleDiagonalSize?.toString() : void 0,
|
|
980
|
-
"hw.lcd.single.height": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.singleResolutionHeight?.toString() : void 0,
|
|
981
|
-
"hw.lcd.single.width": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.singleResolutionWidth?.toString() : void 0,
|
|
979
|
+
"hw.lcd.single.diagonalSize": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.singleDiagonalSize?.toString() : EmulatorFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.diagonalSize?.toString() : void 0,
|
|
980
|
+
"hw.lcd.single.height": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.singleResolutionHeight?.toString() : EmulatorFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.resolutionHeight?.toString() : void 0,
|
|
981
|
+
"hw.lcd.single.width": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.singleResolutionWidth?.toString() : EmulatorFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.resolutionWidth?.toString() : void 0,
|
|
982
982
|
"hw.lcd.double.diagonalSize": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.doubleDiagonalSize?.toString() : void 0,
|
|
983
983
|
"hw.lcd.double.height": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.doubleResolutionHeight?.toString() : void 0,
|
|
984
984
|
"hw.lcd.double.width": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.doubleResolutionWidth?.toString() : void 0,
|
|
@@ -1400,7 +1400,7 @@ let OptionsResolver;
|
|
|
1400
1400
|
deployedPath,
|
|
1401
1401
|
cachePath,
|
|
1402
1402
|
sdkPath,
|
|
1403
|
-
defaultSdkPath: await fs.isDirectory(resolveDefaultSdkPath()).then((isDirectory) => isDirectory ? resolveDefaultSdkPath() : void 0, () => void 0),
|
|
1403
|
+
defaultSdkPath: await fs.isDirectory(resolveDefaultSdkPath()).then((isDirectory) => isDirectory ? join(resolveDefaultSdkPath(), "..", "..") : void 0, () => void 0),
|
|
1404
1404
|
configPath,
|
|
1405
1405
|
logPath,
|
|
1406
1406
|
emulatorPath,
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { fromByteArray } from "base64-js";
|
|
|
3
3
|
import { RelativePattern, WriteableFlags, createNodeFileSystem } from "vscode-fs";
|
|
4
4
|
|
|
5
5
|
//#region package.json
|
|
6
|
-
var version = "0.5.12-beta.
|
|
6
|
+
var version = "0.5.12-beta.3";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/common/serializable-content.ts
|
|
@@ -274,10 +274,10 @@ var EmulatorFileImpl = class extends SerializableFileImpl {
|
|
|
274
274
|
const pushDeviceItem = (item) => {
|
|
275
275
|
if (EmulatorBasicItem.is(item)) {
|
|
276
276
|
if (options.apiVersion && item.getContent().api === options.apiVersion && options.deviceType && item.getContent().deviceType === options.deviceType) items.push(item);
|
|
277
|
-
} else if (EmulatorFoldItem.is(item)) {
|
|
278
|
-
if (options.apiVersion && item.getContent().api === options.apiVersion && options.deviceType && item.getContent().deviceType === options.deviceType) items.push(item);
|
|
279
277
|
} else if (EmulatorTripleFoldItem.is(item)) {
|
|
280
278
|
if (options.apiVersion && item.getContent().api === options.apiVersion && options.deviceType && item.getContent().deviceType === options.deviceType) items.push(item);
|
|
279
|
+
} else if (EmulatorFoldItem.is(item)) {
|
|
280
|
+
if (options.apiVersion && item.getContent().api === options.apiVersion && options.deviceType && item.getContent().deviceType === options.deviceType) items.push(item);
|
|
281
281
|
}
|
|
282
282
|
};
|
|
283
283
|
for (const item of this.getItems()) if (EmulatorGroupItem.is(item)) for (const child of item.getChildren()) pushDeviceItem(child);
|
|
@@ -947,9 +947,9 @@ var LocalImageImpl = class extends BaseImageImpl {
|
|
|
947
947
|
"hw.cpu.arch": this.getImageManager().getArch(),
|
|
948
948
|
"hw.cpu.ncore": listFileItem.getContent()?.cpuNumber,
|
|
949
949
|
"hw.lcd.density": emulatorDeviceItem.getContent()?.density?.toFixed(),
|
|
950
|
-
"hw.lcd.single.diagonalSize": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.singleDiagonalSize?.toString() : void 0,
|
|
951
|
-
"hw.lcd.single.height": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.singleResolutionHeight?.toString() : void 0,
|
|
952
|
-
"hw.lcd.single.width": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.singleResolutionWidth?.toString() : void 0,
|
|
950
|
+
"hw.lcd.single.diagonalSize": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.singleDiagonalSize?.toString() : EmulatorFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.diagonalSize?.toString() : void 0,
|
|
951
|
+
"hw.lcd.single.height": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.singleResolutionHeight?.toString() : EmulatorFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.resolutionHeight?.toString() : void 0,
|
|
952
|
+
"hw.lcd.single.width": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.singleResolutionWidth?.toString() : EmulatorFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.resolutionWidth?.toString() : void 0,
|
|
953
953
|
"hw.lcd.double.diagonalSize": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.doubleDiagonalSize?.toString() : void 0,
|
|
954
954
|
"hw.lcd.double.height": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.doubleResolutionHeight?.toString() : void 0,
|
|
955
955
|
"hw.lcd.double.width": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.doubleResolutionWidth?.toString() : void 0,
|
|
@@ -1371,7 +1371,7 @@ let OptionsResolver;
|
|
|
1371
1371
|
deployedPath,
|
|
1372
1372
|
cachePath,
|
|
1373
1373
|
sdkPath,
|
|
1374
|
-
defaultSdkPath: await fs.isDirectory(resolveDefaultSdkPath()).then((isDirectory) => isDirectory ? resolveDefaultSdkPath() : void 0, () => void 0),
|
|
1374
|
+
defaultSdkPath: await fs.isDirectory(resolveDefaultSdkPath()).then((isDirectory) => isDirectory ? join(resolveDefaultSdkPath(), "..", "..") : void 0, () => void 0),
|
|
1375
1375
|
configPath,
|
|
1376
1376
|
logPath,
|
|
1377
1377
|
emulatorPath,
|
package/package.json
CHANGED