未验证 提交 943e91d6 编写于 作者: O openharmony_ci 提交者: Gitee

!13190 包管理变更文件名ohos.bundle.distributedBundleManager

Merge pull request !13190 from wangtiantian/distributed
......@@ -139,7 +139,7 @@
- [@ohos.bundle.bundleManager (bundleManager模块)](js-apis-bundleManager.md)
- [@ohos.bundle.bundleMonitor (bundleMonitor模块)](js-apis-bundleMonitor.md)
- [@ohos.bundle.defaultAppManager (默认应用管理)](js-apis-defaultAppManager.md)
- [@ohos.bundle.distributedBundle (distributedBundle模块)](js-apis-distributedBundle.md)
- [@ohos.bundle.distributedBundleManager (distributedBundleManager模块)](js-apis-distributedBundleManager.md)
- [@ohos.bundle.freeInstall (freeInstall模块)](js-apis-freeInstall.md)
- [@ohos.bundle.installer (installer模块)](js-apis-installer.md)
- [@ohos.bundle.launcherBundleManager (launcherBundleManager模块)](js-apis-launcherBundleManager.md)
......
......@@ -26,7 +26,7 @@ SystemCapability.BundleManager.DistributedBundleFramework
## distributedBundle.getRemoteAbilityInfo<sup>deprecated<sup>
> 从API version 9开始不再维护,建议使用[getRemoteAbilityInfo(@ohos.bundle.distributedBundle)](js-apis-distributedBundle.md)替代。
> 从API version 9开始不再维护,建议使用[getRemoteAbilityInfo(@ohos.bundle.distributedBundleManager)](js-apis-distributedBundleManager.md)替代。
getRemoteAbilityInfo(elementName: ElementName, callback: AsyncCallback&lt;RemoteAbilityInfo&gt;): void;
......@@ -55,7 +55,7 @@ SystemCapability.BundleManager.DistributedBundleFramework
## distributedBundle.getRemoteAbilityInfo<sup>deprecated<sup>
> 从API version 9开始不再维护,建议使用[getRemoteAbilityInfo(@ohos.bundle.distributedBundle)](js-apis-distributedBundle.md)替代。
> 从API version 9开始不再维护,建议使用[getRemoteAbilityInfo(@ohos.bundle.distributedBundleManager)](js-apis-distributedBundleManager.md)替代。
getRemoteAbilityInfo(elementName: ElementName): Promise&lt;RemoteAbilityInfo&gt;
......@@ -87,7 +87,7 @@ SystemCapability.BundleManager.DistributedBundleFramework
## distributedBundle.getRemoteAbilityInfos<sup>deprecated<sup>
> 从API version 9开始不再维护,建议使用[getRemoteAbilityInfo(@ohos.bundle.distributedBundle)](js-apis-distributedBundle.md)替代。
> 从API version 9开始不再维护,建议使用[getRemoteAbilityInfo(@ohos.bundle.distributedBundleManager)](js-apis-distributedBundleManager.md)替代。
getRemoteAbilityInfos(elementNames: Array&lt;ElementName&gt;, callback: AsyncCallback&lt;Array&lt;RemoteAbilityInfo&gt;&gt;): void;
......@@ -116,7 +116,7 @@ SystemCapability.BundleManager.DistributedBundleFramework
## distributedBundle.getRemoteAbilityInfos<sup>deprecated<sup>
> 从API version 9开始不再维护,建议使用[getRemoteAbilityInfo(@ohos.bundle.distributedBundle)](js-apis-distributedBundle.md)替代。
> 从API version 9开始不再维护,建议使用[getRemoteAbilityInfo(@ohos.bundle.distributedBundleManager)](js-apis-distributedBundleManager.md)替代。
getRemoteAbilityInfos(elementNames: Array&lt;ElementName&gt;): Promise&lt;Array&lt;RemoteAbilityInfo&gt;&gt;
......
......@@ -20,7 +20,6 @@
| iconId | number | 是 | 否 | 应用程序图标的资源id。 |
| process | string | 是 | 否 | 应用程序的进程,如果不设置,默认为包的名称。 |
| permissions | Array\<string> | 是 | 否 | 访问应用程序所需的权限,通过调用[bundleManager.getApplicationInfo](js-apis-bundleManager.md#bundlemanagergetapplicationinfo)接口,appFlags参数传入GET_APPLICATION_INFO_WITH_PERMISSION获取。 |
| entryDir | string | 是 | 否 | 应用程序的文件保存路径。 |
| codePath | string | 是 | 否 | 应用程序的安装目录。 |
| metadata | Map\<string, Array\<[Metadata](js-apis-bundleManager-metadata.md)>> | 是 | 否 | 应用程序的元信息,通过调用[bundleManager.getApplicationInfo](js-apis-bundleManager.md#bundlemanagergetapplicationinfo)接口,appFlags参数传入GET_APPLICATION_INFO_WITH_METADATA获取。 |
| removable | boolean | 是 | 否 | 应用程序是否可以被移除。 |
......@@ -30,4 +29,5 @@
| labelResource | [Resource](js-apis-resource-manager.md#resource9) | 是 | 否 | 应用程序的标签资源信息。 |
| descriptionResource | [Resource](js-apis-resource-manager.md#resource9) | 是 | 否 | 应用程序的描述资源信息。 |
| appDistributionType | string | 是 | 否 | 应用程序签名证书的分发类型,分为:app_gallery、enterprise、os_integration和crowdtesting。 |
| appProvisionType | string | 是 | 否 | 应用程序签名证书文件的类型,分为debug和release两种类型。 |
\ No newline at end of file
| appProvisionType | string | 是 | 否 | 应用程序签名证书文件的类型,分为debug和release两种类型。 |
| systemApp | boolean | 是 | 否 | 标识应用是否为系统应用。 |
\ No newline at end of file
......@@ -25,5 +25,3 @@ HAP信息,系统应用可以通过[bundleManager.getBundleInfo](js-apis-bundle
| deviceTypes | Array\<string> | 是 | 否 | 可以运行模块的设备类型。 |
| installationFree | boolean | 是 | 否 | 模块是否支持免安装。 |
| hashValue | string | 是 | 否 | 模块的Hash值。 |
| moduleSourceDir | string | 是 | 否 | 模块的路径。|
# @ohos.bundle.distributedBundle (distributedBundle模块)
# @ohos.bundle.distributedBundleManager (distributedBundleManager模块)
本模块提供分布式应用的管理能力
......@@ -11,7 +11,7 @@
## 导入模块
```
import distributedBundle from '@ohos.bundle.distributedBundle';
import distributedBundle from '@ohos.bundle.distributedBundleManager';
```
## 系统能力
......
# 包管理子系统ChangeLog
## cl.bundlemanager.1 包管理分布式查询模块名称变更,由ohos.bundle.distributedBundle变更为ohos.bundle.distributedBundleManager,接口未发生变更。
API9的包管理分布式查询模块名称变更,由ohos.bundle.distributedBundle变更为[ohos.bundle.distributedBundleManager](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/@ohos.bundle.distributedBundleManager.d.ts),接口未发生变更。
**变更影响**<br>
对原有使用API version 9之前的应用无影响,使用API version 9的应用需要适配新模块。
**关键的接口/组件变更**<br>
包管理分布式查询模块名称由ohos.bundle.distributedBundle修改为ohos.bundle.distributedBundleManager,接口未发生变更。
**适配指导**<br>
原有导入模块@ohos.bundle.distributedBundle代码需要修改为@ohos.bundle.distributedBundleManager。
```ts
import distributedBundle form '@ohos.bundle.distributedBundleManager';
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册