未验证 提交 4011696d 编写于 作者: O openharmony_ci 提交者: Gitee

!13532 包管理doc(monthly)

Merge pull request !13532 from SoftSquirrel/monthly_20221018
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
| iconId | number | 是 | 否 | 应用程序图标的资源id。 | | iconId | number | 是 | 否 | 应用程序图标的资源id。 |
| process | string | 是 | 否 | 应用程序的进程,如果不设置,默认为包的名称。 | | process | string | 是 | 否 | 应用程序的进程,如果不设置,默认为包的名称。 |
| permissions | Array\<string> | 是 | 否 | 访问应用程序所需的权限,通过调用[bundleManager.getApplicationInfo](js-apis-bundleManager.md#bundlemanagergetapplicationinfo)接口,传入GET_APPLICATION_INFO_WITH_PERMISSION获取。 | | permissions | Array\<string> | 是 | 否 | 访问应用程序所需的权限,通过调用[bundleManager.getApplicationInfo](js-apis-bundleManager.md#bundlemanagergetapplicationinfo)接口,传入GET_APPLICATION_INFO_WITH_PERMISSION获取。 |
| entryDir | string | 是 | 否 | 应用程序的文件保存路径。 |
| codePath | string | 是 | 否 | 应用程序的安装目录。 | | codePath | string | 是 | 否 | 应用程序的安装目录。 |
| metadata | Map\<string, Array\<[Metadata](js-apis-bundleManager-metadata.md)>> | 是 | 否 | 应用程序的元信息,通过调用[bundleManager.getApplicationInfo](js-apis-bundleManager.md#bundlemanagergetapplicationinfo)接口,传入GET_APPLICATION_INFO_WITH_METADATA获取。 | | metadata | Map\<string, Array\<[Metadata](js-apis-bundleManager-metadata.md)>> | 是 | 否 | 应用程序的元信息,通过调用[bundleManager.getApplicationInfo](js-apis-bundleManager.md#bundlemanagergetapplicationinfo)接口,传入GET_APPLICATION_INFO_WITH_METADATA获取。 |
| removable | boolean | 是 | 否 | 应用程序是否可以被移除。 | | removable | boolean | 是 | 否 | 应用程序是否可以被移除。 |
......
...@@ -25,5 +25,4 @@ HAP信息,系统应用可以通过[bundleManager.getBundleInfo](js-apis-bundle ...@@ -25,5 +25,4 @@ HAP信息,系统应用可以通过[bundleManager.getBundleInfo](js-apis-bundle
| deviceTypes | Array\<string> | 是 | 否 | 支持运行的设备类型。 | | deviceTypes | Array\<string> | 是 | 否 | 支持运行的设备类型。 |
| installationFree | boolean | 是 | 否 | 是否支持免安装。 | | installationFree | boolean | 是 | 否 | 是否支持免安装。 |
| hashValue | string | 是 | 否 | Module的Hash值。 | | hashValue | string | 是 | 否 | Module的Hash值。 |
| moduleSourceDir | string | 是 | 否 | Module的路径。|
# 包管理子系统ChangeLog
## cl.bundlemanager.1 API9的ApplicationInfo结构体字段变更,删除entryDir字段。
API9的ApplicationInfo结构体[[bundleManager/applicationInfo.d.ts](https://gitee.com/openharmony/interface_sdk-js/blob/monthly_20221018/api/bundleManager/applicationInfo.d.ts)]字段变更,删除entryDir字段。
**变更影响**<br>
对使用API version 8及之前版本SDK的应用无影响,使用API version 9的应用需要适配新模块和新接口。
**关键的接口/组件变更**<br>
ApplicationInfo结构体发生变化的字段内容如下表所示。
| 删除 | API9新增或变更 | 类型 |
| --- | --- | --- |
| entryDir | 无 | string |
**适配指导**<br>
导入包管理查询的模块,在API9 version的ApplicationInfo结构体时,使用了entryDir需要进行修改,该字段属于多余字段。
## cl.bundlemanager.2 API9的HapModuleInfo结构体字段变更,删除moduleSourceDir字段。
API9的HapModuleInfo结构体[[bundleManager/hapModuleInfo.d.ts](https://gitee.com/openharmony/interface_sdk-js/blob/monthly_20221018/api/bundleManager/hapModuleInfo.d.ts)]字段变更,删除moduleSourceDir字段。
**变更影响**<br>
对使用API version 8及之前版本SDK的应用无影响,使用API version 9的应用需要适配新模块和新接口。
**关键的接口/组件变更**<br>
HapModuleInfo结构体发生变化的字段内容如下表所示。
| 删除 | API9新增或变更 | 类型 |
| --- | --- | --- |
| moduleSourceDir | 无 | string |
**适配指导**<br>
导入包管理查询的模块,在API9 version的HapModuleInfo结构体时不能使用moduleSourceDir字段。使用了moduleSourceDir需要进行修改,该字段属于多余字段。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册