@arkts/image-manager 0.1.5 → 0.2.0
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/default-product-config.cjs +18 -0
- package/dist/default-product-config.d.cts +1 -1
- package/dist/default-product-config.d.mts +1 -1
- package/dist/default-product-config.mjs +18 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +4 -2
- package/dist/index.d.mts +4 -2
- package/dist/index.mjs +2 -2
- package/dist/{product-config-DtWd8ReR.d.mts → product-config-BwP_DEGj.d.mts} +4 -0
- package/dist/{product-config-sobL53MD.d.cts → product-config-C-0AD84Q.d.cts} +4 -0
- package/package.json +1 -1
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
//#region src/default-product-config.ts
|
|
3
3
|
var default_product_config_default = {
|
|
4
4
|
"Phone": [
|
|
5
|
+
{
|
|
6
|
+
name: "nova 15 Pro、nova 15 Ultra",
|
|
7
|
+
screenWidth: "1320",
|
|
8
|
+
screenHeight: "2856",
|
|
9
|
+
screenDiagonal: "6.84",
|
|
10
|
+
screenDensity: "560",
|
|
11
|
+
oneCutoutPath: "M517 45 L802 45 v 103 h -285 Z",
|
|
12
|
+
visible: true
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: "nova 15",
|
|
16
|
+
screenWidth: "1084",
|
|
17
|
+
screenHeight: "2412",
|
|
18
|
+
screenDiagonal: "6.7",
|
|
19
|
+
screenDensity: "480",
|
|
20
|
+
oneCutoutPath: "M504 16 L580 16 v 76 h -76 Z",
|
|
21
|
+
visible: true
|
|
22
|
+
},
|
|
5
23
|
{
|
|
6
24
|
name: "Mate 80 Pro Max、Mate 80 RS",
|
|
7
25
|
screenWidth: "1320",
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
//#region src/default-product-config.ts
|
|
2
2
|
var default_product_config_default = {
|
|
3
3
|
"Phone": [
|
|
4
|
+
{
|
|
5
|
+
name: "nova 15 Pro、nova 15 Ultra",
|
|
6
|
+
screenWidth: "1320",
|
|
7
|
+
screenHeight: "2856",
|
|
8
|
+
screenDiagonal: "6.84",
|
|
9
|
+
screenDensity: "560",
|
|
10
|
+
oneCutoutPath: "M517 45 L802 45 v 103 h -285 Z",
|
|
11
|
+
visible: true
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: "nova 15",
|
|
15
|
+
screenWidth: "1084",
|
|
16
|
+
screenHeight: "2412",
|
|
17
|
+
screenDiagonal: "6.7",
|
|
18
|
+
screenDensity: "480",
|
|
19
|
+
oneCutoutPath: "M504 16 L580 16 v 76 h -76 Z",
|
|
20
|
+
visible: true
|
|
21
|
+
},
|
|
4
22
|
{
|
|
5
23
|
name: "Mate 80 Pro Max、Mate 80 RS",
|
|
6
24
|
screenWidth: "1320",
|
package/dist/index.cjs
CHANGED
|
@@ -671,11 +671,11 @@ var ImageManagerImpl = class {
|
|
|
671
671
|
if (this.resolvedOptions.process.arch.toLowerCase().includes("arm")) return "arm64";
|
|
672
672
|
return "x86";
|
|
673
673
|
}
|
|
674
|
-
async getImages() {
|
|
674
|
+
async getImages(supportVersion = "6.0-hos-single-9") {
|
|
675
675
|
const response = await axios.default.post("https://devecostudio-drcn.deveco.dbankcloud.com/sdkmanager/v8/hos/getSdkList", {
|
|
676
676
|
osArch: this.getArch(),
|
|
677
677
|
osType: this.getOS(),
|
|
678
|
-
supportVersion
|
|
678
|
+
supportVersion
|
|
679
679
|
});
|
|
680
680
|
if (!Array.isArray(response.data)) return [];
|
|
681
681
|
const images = [];
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DeviceType, c as SnakecaseDeviceType, d as DeployedImageConfig, f as DeployedImageConfigWithProductName, g as ProductNameable, h as FullDeployedImageOptions, i as Arch, l as Stringifiable, m as DevModel, n as ProductConfigItem, o as OS, p as DeployedImageOptions, r as createDeployedImageConfig, s as PascalCaseDeviceType, t as ProductConfig, u as DeployedDevModel } from "./product-config-
|
|
1
|
+
import { a as DeviceType, c as SnakecaseDeviceType, d as DeployedImageConfig, f as DeployedImageConfigWithProductName, g as ProductNameable, h as FullDeployedImageOptions, i as Arch, l as Stringifiable, m as DevModel, n as ProductConfigItem, o as OS, p as DeployedImageOptions, r as createDeployedImageConfig, s as PascalCaseDeviceType, t as ProductConfig, u as DeployedDevModel } from "./product-config-C-0AD84Q.cjs";
|
|
2
2
|
import { AxiosProgressEvent } from "axios";
|
|
3
3
|
import { Emitter } from "mitt";
|
|
4
4
|
import * as node_child_process0 from "node:child_process";
|
|
@@ -159,8 +159,10 @@ interface ImageManager {
|
|
|
159
159
|
getOptions(): ResolvedImageManagerOptions;
|
|
160
160
|
/**
|
|
161
161
|
* Get the images.
|
|
162
|
+
*
|
|
163
|
+
* @param supportVersion - The support version of the images. Default is `6.0-hos-single-9`.
|
|
162
164
|
*/
|
|
163
|
-
getImages(): Promise<Image[]>;
|
|
165
|
+
getImages(supportVersion?: string): Promise<Image[]>;
|
|
164
166
|
/**
|
|
165
167
|
* Get the product config.
|
|
166
168
|
*
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DeviceType, c as SnakecaseDeviceType, d as DeployedImageConfig, f as DeployedImageConfigWithProductName, g as ProductNameable, h as FullDeployedImageOptions, i as Arch, l as Stringifiable, m as DevModel, n as ProductConfigItem, o as OS, p as DeployedImageOptions, r as createDeployedImageConfig, s as PascalCaseDeviceType, t as ProductConfig, u as DeployedDevModel } from "./product-config-
|
|
1
|
+
import { a as DeviceType, c as SnakecaseDeviceType, d as DeployedImageConfig, f as DeployedImageConfigWithProductName, g as ProductNameable, h as FullDeployedImageOptions, i as Arch, l as Stringifiable, m as DevModel, n as ProductConfigItem, o as OS, p as DeployedImageOptions, r as createDeployedImageConfig, s as PascalCaseDeviceType, t as ProductConfig, u as DeployedDevModel } from "./product-config-BwP_DEGj.mjs";
|
|
2
2
|
import { AxiosProgressEvent } from "axios";
|
|
3
3
|
import { Emitter } from "mitt";
|
|
4
4
|
import progress from "progress-stream";
|
|
@@ -159,8 +159,10 @@ interface ImageManager {
|
|
|
159
159
|
getOptions(): ResolvedImageManagerOptions;
|
|
160
160
|
/**
|
|
161
161
|
* Get the images.
|
|
162
|
+
*
|
|
163
|
+
* @param supportVersion - The support version of the images. Default is `6.0-hos-single-9`.
|
|
162
164
|
*/
|
|
163
|
-
getImages(): Promise<Image[]>;
|
|
165
|
+
getImages(supportVersion?: string): Promise<Image[]>;
|
|
164
166
|
/**
|
|
165
167
|
* Get the product config.
|
|
166
168
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -639,11 +639,11 @@ var ImageManagerImpl = class {
|
|
|
639
639
|
if (this.resolvedOptions.process.arch.toLowerCase().includes("arm")) return "arm64";
|
|
640
640
|
return "x86";
|
|
641
641
|
}
|
|
642
|
-
async getImages() {
|
|
642
|
+
async getImages(supportVersion = "6.0-hos-single-9") {
|
|
643
643
|
const response = await axios.post("https://devecostudio-drcn.deveco.dbankcloud.com/sdkmanager/v8/hos/getSdkList", {
|
|
644
644
|
osArch: this.getArch(),
|
|
645
645
|
osType: this.getOS(),
|
|
646
|
-
supportVersion
|
|
646
|
+
supportVersion
|
|
647
647
|
});
|
|
648
648
|
if (!Array.isArray(response.data)) return [];
|
|
649
649
|
const images = [];
|
package/package.json
CHANGED