@arkts/image-manager 0.5.12-beta.2 → 0.5.12-beta.4
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 +8 -8
- package/dist/index.mjs +8 -8
- 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.4";
|
|
36
36
|
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/common/serializable-content.ts
|
|
@@ -976,12 +976,12 @@ 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,
|
|
982
|
-
"hw.lcd.double.diagonalSize": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.doubleDiagonalSize?.toString() : void 0,
|
|
983
|
-
"hw.lcd.double.height": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.doubleResolutionHeight?.toString() : void 0,
|
|
984
|
-
"hw.lcd.double.width": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.doubleResolutionWidth?.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
|
+
"hw.lcd.double.diagonalSize": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.doubleDiagonalSize?.toString() : EmulatorFoldItem.is(emulatorDeviceItem) ? productConfigItem.getContent()?.screenDiagonal?.toString() : void 0,
|
|
983
|
+
"hw.lcd.double.height": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.doubleResolutionHeight?.toString() : EmulatorFoldItem.is(emulatorDeviceItem) ? productConfigItem.getContent()?.screenHeight?.toString() : void 0,
|
|
984
|
+
"hw.lcd.double.width": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.doubleResolutionWidth?.toString() : EmulatorFoldItem.is(emulatorDeviceItem) ? productConfigItem.getContent()?.screenWidth?.toString() : void 0,
|
|
985
985
|
"hw.lcd.triple.diagonalSize": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent().diagonalSize.toString() : void 0,
|
|
986
986
|
"hw.lcd.triple.height": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent().resolutionHeight.toString() : void 0,
|
|
987
987
|
"hw.lcd.triple.width": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent().resolutionWidth.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.4";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/common/serializable-content.ts
|
|
@@ -947,12 +947,12 @@ 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,
|
|
953
|
-
"hw.lcd.double.diagonalSize": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.doubleDiagonalSize?.toString() : void 0,
|
|
954
|
-
"hw.lcd.double.height": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.doubleResolutionHeight?.toString() : void 0,
|
|
955
|
-
"hw.lcd.double.width": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.doubleResolutionWidth?.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
|
+
"hw.lcd.double.diagonalSize": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.doubleDiagonalSize?.toString() : EmulatorFoldItem.is(emulatorDeviceItem) ? productConfigItem.getContent()?.screenDiagonal?.toString() : void 0,
|
|
954
|
+
"hw.lcd.double.height": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.doubleResolutionHeight?.toString() : EmulatorFoldItem.is(emulatorDeviceItem) ? productConfigItem.getContent()?.screenHeight?.toString() : void 0,
|
|
955
|
+
"hw.lcd.double.width": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent()?.doubleResolutionWidth?.toString() : EmulatorFoldItem.is(emulatorDeviceItem) ? productConfigItem.getContent()?.screenWidth?.toString() : void 0,
|
|
956
956
|
"hw.lcd.triple.diagonalSize": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent().diagonalSize.toString() : void 0,
|
|
957
957
|
"hw.lcd.triple.height": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent().resolutionHeight.toString() : void 0,
|
|
958
958
|
"hw.lcd.triple.width": EmulatorTripleFoldItem.is(emulatorDeviceItem) ? emulatorDeviceItem.getContent().resolutionWidth.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