From dca76c24190de3fc40bbf60b6b476f52dbd02d79 Mon Sep 17 00:00:00 2001
From: BXMing <649579772@qq.com>
Date: Wed, 18 May 2022 10:43:41 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4deviceConfig=E5=90=AB?=
=?UTF-8?q?=E4=B9=89=E4=B8=AD=E5=A4=9A=E4=BD=99=E7=9A=84=E2=80=9C=E8=80=8C?=
=?UTF-8?q?=E2=80=9D=EF=BC=9B=20=E5=9C=A8distro=E5=AF=B9=E8=B1=A1=E6=8F=8F?=
=?UTF-8?q?=E8=BF=B0=E8=A1=A8=E6=A0=BC=E4=B8=AD=E6=96=B0=E5=A2=9EdeliveryW?=
=?UTF-8?q?ithInstall=E5=B1=9E=E6=80=A7=E5=8F=8A=E7=9B=B8=E5=85=B3?=
=?UTF-8?q?=E6=8F=8F=E8=BF=B0=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: BXMing <649579772@qq.com>
---
.../quick-start/package-structure.md | 14 ++++++++------
.../quick-start/package-structure.md | 6 ++++--
2 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/en/application-dev/quick-start/package-structure.md b/en/application-dev/quick-start/package-structure.md
index 07a1516840..7bdb44c158 100644
--- a/en/application-dev/quick-start/package-structure.md
+++ b/en/application-dev/quick-start/package-structure.md
@@ -271,11 +271,12 @@ Example of the **module** tag structure:
Table 12 Internal structure of the distro attribute
-| Attribute | Description | Data Type| Initial Value Allowed|
-| ---------------- | ------------------------------------------------------------ | -------- | ---------- |
-| moduleName | Name of the current HAP file. The maximum length is 31 characters. | String | No |
-| moduleType | Type of the current HAP file. The value can be **entry** or **feature**. For the HAR type, set this attribute to **har**.| String | No |
-| installationFree | Whether the HAP file supports the installation-free feature.
**true**: The HAP file supports the installation-free feature and meets installation-free constraints.
**false**: The HAP file does not support the installation-free feature.
Pay attention to the following:
When **entry.hap** is set to **true**, all **feature.hap** fields related to **entry.hap **must be **true**.
When **entry.hap** is set to **false**, **feature.hap** related to **entry.hap** can be set to **true** or **false** based on service requirements.| Boolean | No |
+| Attribute | Description | Data Type| Initial Value Allowed|
+| ---------------- |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -------- | ---------- |
+| moduleName | Name of the current HAP file. The maximum length is 31 characters. | String | No |
+| moduleType | Type of the current HAP file. The value can be **entry** or **feature**. For the HAR type, set this attribute to **har**. | String | No |
+| installationFree | Whether the HAP file supports the installation-free feature.
**true**: The HAP file supports the installation-free feature and meets installation-free constraints.
**false**: The HAP file does not support the installation-free feature.
Pay attention to the following:
When **entry.hap** is set to **true**, all **feature.hap** fields related to **entry.hap **must be **true**.
When **entry.hap** is set to **false**, **feature.hap** related to **entry.hap** can be set to **true** or **false** based on service requirements. | Boolean | No |
+| deliveryWithInstall | Whether the HAP file supports the installation with application。
true: Support。
false:No Support。 | Boolean | No |
Example of the **distro** attribute structure:
@@ -283,7 +284,8 @@ Example of the **distro** attribute structure:
"distro": {
"moduleName": "ohos_entry",
"moduleType": "entry",
- "installationFree": true
+ "installationFree": true,
+ "deliveryWithInstall": true
}
```
diff --git a/zh-cn/application-dev/quick-start/package-structure.md b/zh-cn/application-dev/quick-start/package-structure.md
index 6aad24ced2..12e06a7d6f 100644
--- a/zh-cn/application-dev/quick-start/package-structure.md
+++ b/zh-cn/application-dev/quick-start/package-structure.md
@@ -13,7 +13,7 @@
| 属性名称 | 含义 | 数据类型 | 是否可缺省 |
| ------------ | ------------------------------------------------------------ | -------- | ---------- |
| app | 表示应用的全局配置信息。同一个应用的不同HAP包的app配置必须保持一致。参考[app对象内部结构](#app对象内部结构)。 | 对象 | 否 |
-| deviceConfig | 表示应用在具体设备上的而配置信息。参考[deviceconfig对象内部结构](#deviceconfig对象的内部结构)。 | 对象 | 否 |
+| deviceConfig | 表示应用在具体设备上的配置信息。参考[deviceconfig对象内部结构](#deviceconfig对象的内部结构)。 | 对象 | 否 |
| module | 表示HAP包的配置信息。该标签下的配置只对当前HAP包生效。参考[module对象的内部结构](#module对象的内部结构)。 | 对象 | 否 |
config.json示例:
@@ -276,6 +276,7 @@ module示例:
| moduleName | 表示当前HAP的名称,最大长度为31。 | 字符串 | 不可缺省 |
| moduleType | 表示当前HAP的类型,包括两种类型:entry和feature。另外,如果表示HAR类型,请设置为har。 | 字符串 | 不可缺省 |
| installationFree | 表示当前HAP是否支持免安装特性。
true:表示支持免安装特性,且符合免安装约束。
false:表示不支持免安装特性。
另外还需注意:
当entry.hap该字段配置为true时,与该entry.hap相关的所有feature.hap该字段也需要配置为true。
当entry.hap该字段配置为false时,与该entry.hap相关的各feature.hap该字段可按业务 需求配置true或false。 | 布尔值 | 否 |
+| deliveryWithInstall | 表示当前HAP是否支持随应用安装。
true: 支持随应用安装。
false:不支持随应用安装。| 布尔值 | 不可缺省 |
distro示例:
@@ -283,7 +284,8 @@ distro示例:
"distro": {
"moduleName": "ohos_entry",
"moduleType": "entry",
- "installationFree": true
+ "installationFree": true,
+ "deliveryWithInstall": true
}
```
--
GitLab