From 9acbc632378dddca6222a4b1e268aee5ff40539c Mon Sep 17 00:00:00 2001 From: wangtiantian Date: Tue, 18 Oct 2022 14:55:14 +0800 Subject: [PATCH 1/2] IssueNo:#I5W4EA Description:delete bms old api9 Sig:SIG_ApplicaitonFramework Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: wangtiantian --- api/@ohos.app.ability.abilityManager.d.ts | 2 +- api/@ohos.bundle.d.ts | 750 +--------------------- api/@ohos.bundle.innerBundleManager.d.ts | 44 +- api/@ohos.distributedBundle.d.ts | 39 +- api/application/ExtensionContext.d.ts | 4 +- api/application/ExtensionRunningInfo.d.ts | 6 +- api/bundle/abilityInfo.d.ts | 58 -- api/bundle/applicationInfo.d.ts | 64 -- api/bundle/bundleInfo.d.ts | 15 - api/bundle/bundleInstaller.d.ts | 37 -- api/bundle/dispatchInfo.d.ts | 36 -- api/bundle/elementName.d.ts | 9 - api/bundle/extensionAbilityInfo.d.ts | 126 ---- api/bundle/hapModuleInfo.d.ts | 29 - api/bundle/metadata.d.ts | 45 -- api/bundle/packInfo.d.ts | 389 ----------- api/bundle/shortcutInfo.d.ts | 13 - 17 files changed, 21 insertions(+), 1645 deletions(-) delete mode 100644 api/bundle/dispatchInfo.d.ts delete mode 100644 api/bundle/extensionAbilityInfo.d.ts delete mode 100644 api/bundle/metadata.d.ts delete mode 100644 api/bundle/packInfo.d.ts diff --git a/api/@ohos.app.ability.abilityManager.d.ts b/api/@ohos.app.ability.abilityManager.d.ts index fcf61cb6b2..b7775354d9 100644 --- a/api/@ohos.app.ability.abilityManager.d.ts +++ b/api/@ohos.app.ability.abilityManager.d.ts @@ -17,7 +17,7 @@ import { AsyncCallback } from './basic'; import { Configuration } from './@ohos.app.ability.Configuration'; import { AbilityRunningInfo as _AbilityRunningInfo } from './application/AbilityRunningInfo'; import { ExtensionRunningInfo as _ExtensionRunningInfo } from './application/ExtensionRunningInfo'; -import { ElementName } from './bundle/elementName'; +import { ElementName } from './bundleManager/elementName'; /** * The class of an ability manager. diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index 761db11e78..7279d03950 100644 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -13,23 +13,14 @@ * limitations under the License. */ -import { AsyncCallback, Callback } from './basic'; -import { ApplicationInfo as _ApplicationInfo } from './bundle/applicationInfo'; -import { ModuleInfo as _ModuleInfo } from './bundle/moduleInfo'; -import { CustomizeData as _CustomizeData } from './bundle/customizeData'; -import { Metadata as _Metadata } from './bundle/metadata'; -import { HapModuleInfo as _HapModuleInfo } from './bundle/hapModuleInfo'; -import { AbilityInfo as _AbilityInfo } from './bundle/abilityInfo'; -import { ExtensionAbilityInfo as _ExtensionAbilityInfo } from './bundle/extensionAbilityInfo'; -import { PermissionDef as _PermissionDef } from './bundle/PermissionDef'; -import { ElementName as _ElementName } from './bundle/elementName'; -import { DispatchInfo as _DispatchInfo } from './bundle/dispatchInfo'; +import { AsyncCallback } from './basic'; +import { ApplicationInfo } from './bundle/applicationInfo'; +import { AbilityInfo } from './bundle/abilityInfo'; +import { PermissionDef } from './bundle/PermissionDef'; import Want from './@ohos.application.Want'; import image from './@ohos.multimedia.image'; -import pack from './bundle/packInfo'; -import * as _PackInfo from './bundle/packInfo'; -import * as _BundleInfo from './bundle/bundleInfo'; -import * as _BundleInstaller from './bundle/bundleInstaller'; +import { BundleInfo } from './bundle/bundleInfo'; +import { BundleInstaller } from './bundle/bundleInstaller'; /** * bundle. @@ -64,14 +55,6 @@ declare namespace bundle { * @since 8 */ GET_ABILITY_INFO_WITH_METADATA = 0x00000020, - /** - * @since 9 - */ - GET_BUNDLE_WITH_EXTENSION_ABILITY = 0x00000020, - /** - * @since 9 - */ - GET_BUNDLE_WITH_HASH_VALUE = 0x00000030, /** * @since 8 */ @@ -88,26 +71,6 @@ declare namespace bundle { * @since 8 */ GET_APPLICATION_INFO_WITH_DISABLE = 0x00000200, - /** - * @since 9 - */ - GET_APPLICATION_INFO_WITH_CERTIFICATE_FINGERPRINT = 0x00000400, - } - -/** - * @name ExtensionFlag - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @import NA - * @permission NA - * @deprecated since 9 - * @useinstead ohos.bundle.bundleManager.ExtensionAbilityFlag - */ - enum ExtensionFlag { - GET_EXTENSION_INFO_DEFAULT = 0x00000000, - GET_EXTENSION_INFO_WITH_PERMISSION = 0x00000002, - GET_EXTENSION_INFO_WITH_APPLICATION = 0x00000004, - GET_EXTENSION_INFO_WITH_METADATA = 0x00000020, } /** @@ -131,7 +94,7 @@ declare namespace bundle { * @import NA * @permission NA * @deprecated since 9 - * @useinstead bundleInfo.PermissionGrantStatus + * @useinstead ohos.bundle.bundleManager.PermissionGrantState */ export enum GrantStatus { PERMISSION_DENIED = -1, @@ -145,7 +108,7 @@ declare namespace bundle { * @import NA * @permission NA * @deprecated since 9 - * @useinstead abilityInfo.AbilityType + * @useinstead ohos.bundle.bundleManager.AbilityType */ export enum AbilityType { /** @@ -197,7 +160,7 @@ declare namespace bundle { * @import NA * @permission NA * @deprecated since 9 - * @useinstead abilityInfo.DisplayOrientation + * @useinstead ohos.bundle.bundleManager.DisplayOrientation */ export enum DisplayOrientation { /** @@ -227,69 +190,6 @@ declare namespace bundle { * @syscap SystemCapability.BundleManager.BundleFramework */ FOLLOW_RECENT, - - /** - * @default Indicates the inverted landscape orientation - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - LANDSCAPE_INVERTED, - - /** - * @default Indicates the inverted portrait orientation - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - PORTRAIT_INVERTED, - - /** - * @default Indicates the orientation can be auto-rotated - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - AUTO_ROTATION, - - /** - * @default Indicates the landscape orientation rotated with sensor - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - AUTO_ROTATION_LANDSCAPE, - - /** - * @default Indicates the portrait orientation rotated with sensor - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - AUTO_ROTATION_PORTRAIT, - - /** - * @default Indicates the sensor restricted mode - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - AUTO_ROTATION_RESTRICTED, - - /** - * @default Indicates the sensor landscape restricted mode - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - AUTO_ROTATION_LANDSCAPE_RESTRICTED, - - /** - * @default Indicates the sensor portrait restricted mode - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - AUTO_ROTATION_PORTRAIT_RESTRICTED, - - /** - * @default Indicates the locked orientation mode - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - LOCKED, } /** @@ -299,7 +199,7 @@ declare namespace bundle { * @import NA * @permission NA * @deprecated since 9 - * @useinstead bundleManager/AbilityInfo.LaunchType + * @useinstead ohos.bundle.bundleManager.LaunchType */ export enum LaunchMode { /** @@ -317,108 +217,6 @@ declare namespace bundle { STANDARD = 1, } - /** - * @name ExtensionAbilityType - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @import NA - * @permission NA - * @deprecated since 9 - * @useinstead bundleManager/ExtensionAbilityInfo.ExtensionAbilityType - */ - export enum ExtensionAbilityType { - /** - * @default Indicates extension info with type of form - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - FORM = 0, - /** - * @default Indicates extension info with type of work schedule - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - WORK_SCHEDULER = 1, - /** - * @default Indicates extension info with type of input method - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - INPUT_METHOD = 2, - /** - * @default Indicates extension info with type of service - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - SERVICE = 3, - /** - * @default Indicates extension info with type of accessibility - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - ACCESSIBILITY = 4, - /** - * @default Indicates extension info with type of datashare - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - DATA_SHARE = 5, - /** - * @default Indicates extension info with type of fileshare - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - FILE_SHARE = 6, - /** - * @default Indicates extension info with type of staticsubscriber - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - STATIC_SUBSCRIBER = 7, - /** - * @default Indicates extension info with type of wallpaper - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - WALLPAPER = 8, - /** - * @default Indicates extension info with type of backup - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - BACKUP = 9, - /** - * @default Indicates extension info with type of window - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - WINDOW = 10, - /** - * @default Indicates extension info with type of enterprise admin - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - ENTERPRISE_ADMIN = 11, - /** - * @default Indicates extension info with type of thumbnail - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - THUMBNAIL = 13, - /** - * @default Indicates extension info with type of preview - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - PREVIEW = 14, - /** - * @default Indicates extension info with type of unspecified - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - UNSPECIFIED = 255, - } - /** * @name BundleOptions * @since 7 @@ -488,65 +286,6 @@ declare namespace bundle { STATUS_UNINSTALL_PERMISSION_DENIED = 0x45, } - /** - * @name UpgradeFlag - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi Hide this for inner system use - * @deprecated since 9 - * @useinstead ohos.bundle.freeInstall#UpgradeFlag - */ - export enum UpgradeFlag { - /** - * @default Indicates module not need to be upgraded - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - NOT_UPGRADE = 0, - /** - * @default Indicates single module need to be upgraded - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - SINGLE_UPGRADE = 1, - /** - * @default Indicates relation module need to be upgraded - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - RELATION_UPGRADE = 2, - } - - /** - * @name SupportWindowMode - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @import NA - * @permission NA - * @deprecated since 9, use @ohos.bundle.AbilityInfo.SupportWindowMode - * @useinstead bundleManager/AbilityInfo.SupportWindowMode - */ - export enum SupportWindowMode { - /** - * @default Indicates supported window mode of full screen mode - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - FULL_SCREEN = 0, - /** - * @default Indicates supported window mode of split mode - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - SPLIT = 1, - /** - * @default Indicates supported window mode of floating mode - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - FLOATING = 2, - } - /** * Obtains bundleInfo based on bundleName, bundleFlags and options. * @@ -758,24 +497,6 @@ declare namespace bundle { function setAbilityEnabled(info: AbilityInfo, isEnable: boolean, callback: AsyncCallback): void; function setAbilityEnabled(info: AbilityInfo, isEnable: boolean): Promise; - /** - * Query extension info of by utilizing a Want. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param want Indicates the Want containing the application bundle name to be queried. - * @param extensionFlags Indicates the flag used to specify information contained in the ExtensionInfo objects that - * will be returned. - * @param userId Indicates the user ID. - * @return Returns a list of ExtensionInfo objects. - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO - * @deprecated since 9 - * @useinstead ohos.bundle.bundleManager#queryExtensionAbilityInfo - */ - function queryExtensionAbilityInfos(want: Want, extensionType: number, extensionFlags: number, userId: number, callback: AsyncCallback>): void; - function queryExtensionAbilityInfos(want: Want, extensionType: number, extensionFlags: number, callback: AsyncCallback>): void; - function queryExtensionAbilityInfos(want: Want, extensionType: number, extensionFlags: number, userId?: number): Promise>; - /** * Get the permission details by permissionName. * @@ -846,457 +567,6 @@ declare namespace bundle { */ function isApplicationEnabled(bundleName: string, callback: AsyncCallback): void; function isApplicationEnabled(bundleName: string): Promise; - - /** - * Set the module wether need upgrade - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param bundleName Indicates the bundle name of the application. - * @param moduleName Indicates the module name of the application. - * @param upgradeFlag Indicates upgradeFlag of the application. - * @systemapi Hide this for inner system use - * @deprecated since 9 - * @useinstead ohos.bundle.freeInstall#setHapModuleUpgradeFlag - */ - function setModuleUpgradeFlag(bundleName: string, moduleName: string, upgradeFlag: UpgradeFlag, callback: AsyncCallback):void; - function setModuleUpgradeFlag(bundleName: string, moduleName: string, upgradeFlag: UpgradeFlag): Promise; - - /** - * Checks whether a specified module is removable. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param bundleName Indicates the bundle name of the application. - * @param moduleName Indicates the module name of the application. - * @returns Returns true if the module is removable; returns false otherwise. - * @systemapi Hide this for inner system use - * @deprecated since 9 - * @useinstead ohos.bundle.freeInstall#isHapModuleRemovable - */ - function isModuleRemovable(bundleName: string, moduleName: string, callback: AsyncCallback): void; - function isModuleRemovable(bundleName: string, moduleName: string): Promise; - - /** - * Obtains bundlePackInfo based on bundleName and bundleFlags. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param bundleName Indicates the application bundle name to be queried. - * @param bundlePackFlag Indicates the application bundle pack flag to be queried. - * @return Returns the BundlePackInfo object. - * @systemapi hide this for inner system use - * @deprecated since 9 - * @useinstead ohos.bundle.freeInstall#getBundlePackInfo - */ - function getBundlePackInfo(bundleName: string, bundlePackFlag : pack.BundlePackFlag, callback: AsyncCallback): void; - function getBundlePackInfo(bundleName: string, bundlePackFlag : pack.BundlePackFlag): Promise; - - /** - * Obtains information about the current ability. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param bundleName Indicates the application bundle name to be queried. - * @param moduleName Indicates the module name. - * @param abilityName Indicates the ability name. - * @return Returns the AbilityInfo object for the current ability. - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO - * @deprecated since 9 - * @useinstead ohos.bundle.bundleManager#getAbilityInfo - */ - function getAbilityInfo(bundleName: string, moduleName: string, abilityName: string, callback: AsyncCallback): void; - function getAbilityInfo(bundleName: string, moduleName: string, abilityName: string): Promise; - - /** - * Obtains information about the dispatcher version. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @return Returns the DispatchInfo object for the current ability. - * @systemapi hide this for inner system use - * @deprecated since 9 - * @useinstead ohos.bundle.freeInstall#getDispatchInfo - */ - function getDispatcherVersion(callback: AsyncCallback): void; - function getDispatcherVersion(): Promise; - - /** - * Obtains the label of a specified ability. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param bundleName Indicates the bundle name of the application to which the ability belongs. - * @param moduleName Indicates the module name. - * @param abilityName Indicates the ability name. - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO - * @return Returns the label representing the label of the specified ability. - * @deprecated since 9 - * @useinstead ohos.bundle.bundleManager#getAbilityLabel - */ - function getAbilityLabel(bundleName: string, moduleName: string, abilityName: string, callback: AsyncCallback): void; - function getAbilityLabel(bundleName: string, moduleName: string, abilityName: string): Promise; - - /** - * Obtains the icon of a specified ability. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param bundleName Indicates the bundle name of the application to which the ability belongs. - * @param moduleName Indicates the module name. - * @param abilityName Indicates the ability name. - * @return Returns the PixelMap object representing the icon of the specified ability. - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO - * @deprecated since 9 - * @useinstead ohos.bundle.bundleManager#getAbilityIcon - */ - function getAbilityIcon(bundleName: string, moduleName: string, abilityName: string, callback: AsyncCallback): void; - function getAbilityIcon(bundleName: string, moduleName: string, abilityName: string): Promise; - - /** - * Obtains the profile designated by metadata name, abilityName and moduleName from the current application. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param moduleName Indicates the moduleName of the application. - * @param abilityName Indicates the abilityName of the application. - * @param metadataName Indicates the name of metadata in ability. - * @return Returns string in json-format of the corresponding config file. - * @deprecated since 9 - * @useinstead ohos.bundle.bundleManager#getProfileByAbility - */ - function getProfileByAbility(moduleName: string, abilityName: string, metadataName: string, callback: AsyncCallback>): void; - function getProfileByAbility(moduleName: string, abilityName: string, metadataName?: string): Promise>; - - /** - * Obtains the profile designated by metadata name, extensionAbilityName and moduleName from the current application. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param moduleName Indicates the moduleName of the application. - * @param extensionAbilityName Indicates the extensionAbilityName of the application. - * @param metadataName Indicates the name of metadata in ability. - * @return Returns string in json-format of the corresponding config file. - * @deprecated since 9 - * @useinstead ohos.bundle.bundleManager#getProfileByExtensionAbility - */ - function getProfileByExtensionAbility(moduleName: string, extensionAbilityName: string, metadataName: string, callback: AsyncCallback>): void; - function getProfileByExtensionAbility(moduleName: string, extensionAbilityName: string, metadataName?: string): Promise>; - - /** - * Set the disposed status of a specified bundle. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param bundleName Indicates the bundle name of the application. - * @param status Indicates the disposed status. - * @return Returns the disposed status of a specified bundle. - * @permission ohos.permission.MANAGE_DISPOSED_APP_STATUS - * @systemapi Hide this for inner system use - * @deprecated since 9 - * @useinstead ohos.bundle.appControl#setDisposedStatus - */ - function setDisposedStatus(bundleName: string, status: number, callback: AsyncCallback): void; - function setDisposedStatus(bundleName: string, status: number): Promise; - - /** - * Obtains the disposed status of a specified bundle. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param bundleName Indicates the bundle name of the application. - * @return Returns the disposed status of a specified bundle. - * @permission ohos.permission.MANAGE_DISPOSED_APP_STATUS - * @systemapi Hide this for inner system use - * @deprecated since 9 - * @useinstead ohos.bundle.appControl#getDisposedStatus - */ - function getDisposedStatus(bundleName: string, callback: AsyncCallback): void; - function getDisposedStatus(bundleName: string): Promise; - - /** - * Obtains based on a given bundleName and bundleFlags. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param bundleName Indicates the application bundle name to be queried. - * @param bundleFlags Indicates the flag used to specify information contained in the ApplicationInfo object - * that will be returned. - * @param userId Indicates the user ID or do not pass user ID. - * @return Returns the ApplicationInfo object. - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO - * @deprecated since 9 - * @useinstead ohos.bundle.appControl#getApplicationInfoSync - */ - function getApplicationInfoSync(bundleName: string, bundleFlags: number, userId: number) : ApplicationInfo; - function getApplicationInfoSync(bundleName: string, bundleFlags: number) : ApplicationInfo; - - /** - * Obtains bundleInfo based on bundleName, bundleFlags and options. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param bundleName Indicates the application bundle name to be queried. - * @param bundleFlags Indicates the flag used to specify information contained in the BundleInfo object - * that will be returned. - * @param options Indicates the bundle options object. - * @return Returns the BundleInfo object. - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO - * @deprecated since 9 - * @useinstead ohos.bundle.appControl#getApplicationInfoSync - */ - function getBundleInfoSync(bundleName: string, bundleFlags: number, options: BundleOptions): BundleInfo; - function getBundleInfoSync(bundleName: string, bundleFlags: number): BundleInfo; - - /** - * Obtains configuration information about an application. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - export type ApplicationInfo = _ApplicationInfo; - - /** - * Stores module information about an application. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - export type ModuleInfo = _ModuleInfo; - - /** - * Indicates the custom metadata. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - export type CustomizeData = _CustomizeData; - - /** - * Indicates the Metadata. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - export type Metadata = _Metadata; - - /** - * Obtains configuration information about a bundle. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - export type BundleInfo = _BundleInfo.BundleInfo; - - /** - * The scene which is used. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - export type UsedScene = _BundleInfo.UsedScene; - - /** - * Indicates the required permissions details defined in file config.json. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - export type ReqPermissionDetail = _BundleInfo.ReqPermissionDetail; - - /** - * Obtains configuration information about an module. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - export type HapModuleInfo = _HapModuleInfo; - - /** - * Obtains configuration information about an ability. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - export type AbilityInfo = _AbilityInfo; - - /** - * Obtains extension information about a bundle. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - export type ExtensionAbilityInfo = _ExtensionAbilityInfo; - - /** - * Offers install, upgrade, and remove bundles on the devices. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type BundleInstaller = _BundleInstaller.BundleInstaller; - - /** - * Provides parameters required for hashParam. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type HashParam = _BundleInstaller.HashParam; - - /** - * Provides parameters required for installing or uninstalling an application. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type InstallParam = _BundleInstaller.InstallParam; - - /** - * Indicates the install or uninstall status. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type InstallStatus = _BundleInstaller.InstallStatus; - - /** - * Indicates the defined permission details in file config.json. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type PermissionDef = _PermissionDef; - - /** - * Contains basic Ability information, which uniquely identifies an ability. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - export type ElementName = _ElementName; - - /** - * The dispatch info class. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type DispatchInfo = _DispatchInfo; - - /** - * The bundle pack info class. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type BundlePackInfo = _PackInfo.BundlePackInfo; - - /** - * The package info class. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type PackageConfig = _PackInfo.PackageConfig; - - /** - * The package summary class. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type PackageSummary = _PackInfo.PackageSummary; - - /** - * The bundle summary class. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type BundleConfigInfo = _PackInfo.BundleConfigInfo; - - /** - * The extension ability forms class. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type ExtensionAbilities = _PackInfo.ExtensionAbilities; - - /** - * The module summary of a bundle. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type ModuleConfigInfo = _PackInfo.ModuleConfigInfo; - - /** - * The bundle info summary class. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type ModuleDistroInfo = _PackInfo.ModuleDistroInfo; - - /** - * The ability info of a module. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type ModuleAbilityInfo = _PackInfo.ModuleAbilityInfo; - - /** - * The form info of an ability. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type AbilityFormInfo = _PackInfo.AbilityFormInfo; - - /** - * The bundle version class. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type Version = _PackInfo.Version; - - /** - * The bundle Api version class. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type ApiVersion = _PackInfo.ApiVersion; - - /** - * Flags which are used to indicate bundle pack. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type BundlePackFlag = _PackInfo.BundlePackFlag; } export default bundle; diff --git a/api/@ohos.bundle.innerBundleManager.d.ts b/api/@ohos.bundle.innerBundleManager.d.ts index eabbae5479..30264f6278 100644 --- a/api/@ohos.bundle.innerBundleManager.d.ts +++ b/api/@ohos.bundle.innerBundleManager.d.ts @@ -13,10 +13,10 @@ * limitations under the License. */ -import { AsyncCallback, Callback } from './basic'; -import { BundleStatusCallback as _BundleStatusCallback } from './bundle/bundleStatusCallback'; -import { LauncherAbilityInfo as _LauncherAbilityInfo } from './bundle/launcherAbilityInfo'; -import * as _ShortCutInfo from './bundle/shortcutInfo'; +import { AsyncCallback } from './basic'; +import { BundleStatusCallback } from './bundle/bundleStatusCallback'; +import { LauncherAbilityInfo } from './bundle/launcherAbilityInfo'; +import { ShortcutInfo } from './bundle/shortcutInfo'; /** * inner bundle manager. @@ -104,42 +104,6 @@ declare namespace innerBundleManager { */ function getShortcutInfos(bundleName :string, callback: AsyncCallback>) : void; function getShortcutInfos(bundleName : string) : Promise>; - - /** - * Contains basic launcher Ability information, which uniquely identifies an LauncherAbilityInfo. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type LauncherAbilityInfo = _LauncherAbilityInfo; - - /** - * Contains basic launcher Ability information, which uniquely identifies a launcher StatusCallback. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type BundleStatusCallback = _BundleStatusCallback; - - /** - * Provides information about a shortcut, including the shortcut ID and label. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - export type ShortcutInfo = _ShortCutInfo.ShortcutInfo; - - /** - * Provides methods for obtaining information about the ability that a shortcut will start, including the target - * bundle name, target module name and ability class name. - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export type ShortcutWant = _ShortCutInfo.ShortcutWant; } export default innerBundleManager; diff --git a/api/@ohos.distributedBundle.d.ts b/api/@ohos.distributedBundle.d.ts index 619ab50a1a..a00959bcb3 100644 --- a/api/@ohos.distributedBundle.d.ts +++ b/api/@ohos.distributedBundle.d.ts @@ -15,7 +15,7 @@ import { AsyncCallback } from './basic'; import { ElementName } from './bundle/elementName'; -import { RemoteAbilityInfo as _RemoteAbilityInfo } from './bundle/remoteAbilityInfo'; +import { RemoteAbilityInfo } from './bundle/remoteAbilityInfo'; /** * distributedBundle. @@ -57,42 +57,5 @@ import { RemoteAbilityInfo as _RemoteAbilityInfo } from './bundle/remoteAbilityI */ function getRemoteAbilityInfos(elementNames: Array, callback: AsyncCallback>): void; function getRemoteAbilityInfos(elementNames: Array): Promise>; - - /** - * Obtains information about the ability info of the remote device. - * - * @since 9 - * @syscap SystemCapability.BundleManager.DistributedBundleFramework - * @param elementName Indicates the elementName. - * @param locale Indicates the locale info - * @return Returns the ability info of the remote device. - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED - * @systemapi - */ - function getRemoteAbilityInfo(elementName: ElementName, locale: string, callback: AsyncCallback): void; - function getRemoteAbilityInfo(elementName: ElementName, locale: string): Promise; - - /** - * Obtains information about the ability infos of the remote device. - * - * @since 9 - * @syscap SystemCapability.BundleManager.DistributedBundleFramework - * @param elementNames Indicates the elementNames, Maximum array length ten. - * @param locale Indicates the locale info - * @return Returns the ability infos of the remote device. - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED - * @systemapi - */ - function getRemoteAbilityInfos(elementNames: Array, locale: string, callback: AsyncCallback>): void; - function getRemoteAbilityInfos(elementNames: Array, locale: string): Promise>; - - /** - * Contains basic remote ability information. - * - * @since 9 - * @syscap SystemCapability.BundleManager.DistributedBundleFramework - * @systemapi hide this for inner system use - */ - export type RemoteAbilityInfo = _RemoteAbilityInfo; } export default distributedBundle; \ No newline at end of file diff --git a/api/application/ExtensionContext.d.ts b/api/application/ExtensionContext.d.ts index 3e20d41b8e..7f7c100221 100644 --- a/api/application/ExtensionContext.d.ts +++ b/api/application/ExtensionContext.d.ts @@ -13,10 +13,10 @@ * limitations under the License. */ -import { HapModuleInfo } from "../bundle/hapModuleInfo"; +import { HapModuleInfo } from "../bundleManager/hapModuleInfo"; import { Configuration } from '../@ohos.application.Configuration'; import Context from "./Context"; -import { ExtensionAbilityInfo } from "../bundle/extensionAbilityInfo"; +import { ExtensionAbilityInfo } from "../bundleManager/extensionAbilityInfo"; /** * The context of an extension. It allows access to extension-specific resources. diff --git a/api/application/ExtensionRunningInfo.d.ts b/api/application/ExtensionRunningInfo.d.ts index 32abe9c264..7a4ef741fa 100644 --- a/api/application/ExtensionRunningInfo.d.ts +++ b/api/application/ExtensionRunningInfo.d.ts @@ -13,8 +13,8 @@ * limitations under the License. */ -import { ElementName } from '../bundle/elementName'; -import bundle from '../@ohos.bundle'; +import { ElementName } from '../bundleManager/elementName'; +import bundle from '../@ohos.bundle.bundleManager'; /** * The class of an extension running information. @@ -74,7 +74,7 @@ export interface ExtensionRunningInfo { clientPackage: Array; /** - * @default Enumerates types of the entension info + * @default Enumerates types of the extension info * @since 9 * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi hide this for inner system use diff --git a/api/bundle/abilityInfo.d.ts b/api/bundle/abilityInfo.d.ts index fea1af4095..582105fe21 100644 --- a/api/bundle/abilityInfo.d.ts +++ b/api/bundle/abilityInfo.d.ts @@ -15,7 +15,6 @@ import { ApplicationInfo } from './applicationInfo'; import { CustomizeData } from './customizeData' -import { Metadata } from './metadata' import bundle from './../@ohos.bundle'; /** @@ -217,67 +216,10 @@ export interface AbilityInfo { */ readonly metaData: Array; - /** - * @default Indicates the metadata of ability - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * - */ - readonly metadata: Array; - /** * @default Indicates whether the ability is enabled * @since 8 * @syscap SystemCapability.BundleManager.BundleFramework */ readonly enabled: boolean; - - /** - * @default Indicates which window mode is supported - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly supportWindowMode: Array; - - /** - * @default Indicates maximum ratio of width over height of window under free window status. - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly maxWindowRatio: number; - - /** - * @default Indicates minimum ratio of width over height of window under free window status. - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly minWindowRatio: number; - - /** - * @default Indicates maximum width of window under free window status. - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly maxWindowWidth: number; - - /** - * @default Indicates minimum width of window under free window status. - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly minWindowWidth: number; - - /** - * @default Indicates maximum height of window under free window status. - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly maxWindowHeight: number; - - /** - * @default Indicates minimum height of window under free window status. - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly minWindowHeight: number; } diff --git a/api/bundle/applicationInfo.d.ts b/api/bundle/applicationInfo.d.ts index 1d43226bc4..6b24191948 100644 --- a/api/bundle/applicationInfo.d.ts +++ b/api/bundle/applicationInfo.d.ts @@ -15,8 +15,6 @@ import { ModuleInfo } from './moduleInfo'; import { CustomizeData } from './customizeData'; -import { Metadata } from './metadata'; -import { Resource } from './../global/resource'; /** * @name Obtains configuration information about an application @@ -77,13 +75,6 @@ export interface ApplicationInfo { */ readonly labelId: string; - /** - * @default Indicates the label index of the application - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly labelIndex: number; - /** * @default Indicates the icon of the application * @since 7 @@ -99,13 +90,6 @@ export interface ApplicationInfo { */ readonly iconId: string; - /** - * @default Indicates the icon index of the application - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly iconIndex: number; - /** * @default Process of application, if user do not set it ,the value equal bundleName * @since 7 @@ -162,13 +146,6 @@ export interface ApplicationInfo { */ readonly metaData: Map>; - /** - * @default Indicates the metadata of module - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly metadata: Map>; - /** * @default Indicates whether or not this application may be removable * @since 8 @@ -196,45 +173,4 @@ export interface ApplicationInfo { * @syscap SystemCapability.BundleManager.BundleFramework */ readonly entityType: string; - - /** - * @default Indicates fingerprint of the certificate - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly fingerprint: string; - - /** - * @default Indicates icon resource of the application - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly iconResource: Resource; - - /** - * @default Indicates label resource of the application - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly labelResource: Resource; - /** - * @default Indicates description resource of the application - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly descriptionResource: Resource; - - /** - * @default Indicates the appDistributionType of the application - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly appDistributionType: string; - - /** - * @default Indicates the appProvisionType of the application - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly appProvisionType: string; } diff --git a/api/bundle/bundleInfo.d.ts b/api/bundle/bundleInfo.d.ts index 9f614035ee..fe6cf36753 100644 --- a/api/bundle/bundleInfo.d.ts +++ b/api/bundle/bundleInfo.d.ts @@ -15,7 +15,6 @@ import { AbilityInfo } from './abilityInfo'; import { ApplicationInfo } from './applicationInfo'; -import { ExtensionAbilityInfo } from './extensionAbilityInfo'; import { HapModuleInfo } from './hapModuleInfo'; /** @@ -66,13 +65,6 @@ export interface ReqPermissionDetail { */ reason: string; - /** - * @default Indicates the reason id of this required permissions - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - reasonId: number; - /** * @default Indicates the used scene of this required permissions * @since 7 @@ -253,11 +245,4 @@ export interface BundleInfo { * @syscap SystemCapability.BundleManager.BundleFramework */ readonly reqPermissionStates: Array; - - /** - * @default Obtains configuration information about an ability - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly extensionAbilityInfo: Array; } diff --git a/api/bundle/bundleInstaller.d.ts b/api/bundle/bundleInstaller.d.ts index 3aee486769..337ad6bd27 100644 --- a/api/bundle/bundleInstaller.d.ts +++ b/api/bundle/bundleInstaller.d.ts @@ -16,29 +16,6 @@ import { AsyncCallback } from './../basic'; import bundle from './../@ohos.bundle'; -/** - * @name Provides parameters required for hashParam. - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA - * @systemapi Hide this for inner system use - */ - export interface HashParam { - /** - * @default Indicates the moduleName - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - moduleName: string; - - /** - * @default Indicates the hash value - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - hashValue: string; -} - /** * @name Provides parameters required for installing or uninstalling an application. * @since 7 @@ -75,20 +52,6 @@ export interface InstallParam { * @useinstead ohos.bundle.installer.InstallParam#isKeepData */ isKeepData: boolean; - - /** - * @default Indicates the hash params - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - hashParams?: Array; - - /** - * @default Indicates the deadline of the crowdtesting bundle - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - crowdtestDeadline?: number; } /** diff --git a/api/bundle/dispatchInfo.d.ts b/api/bundle/dispatchInfo.d.ts deleted file mode 100644 index 2538eb4c83..0000000000 --- a/api/bundle/dispatchInfo.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @name The dispatch info class. - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export interface DispatchInfo { - /** - * @default Indicates the dispatchInfo version - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly version: string; - - /** - * @default Indicates the free install interface version number - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly dispatchAPI: string; -} \ No newline at end of file diff --git a/api/bundle/elementName.d.ts b/api/bundle/elementName.d.ts index c03c120ec3..605f8e19ef 100644 --- a/api/bundle/elementName.d.ts +++ b/api/bundle/elementName.d.ts @@ -70,13 +70,4 @@ * @syscap SystemCapability.BundleManager.BundleFramework */ shortName?: string; - - /** - * module name - * @default - - * - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - moduleName?: string; } diff --git a/api/bundle/extensionAbilityInfo.d.ts b/api/bundle/extensionAbilityInfo.d.ts deleted file mode 100644 index d8bf7564c7..0000000000 --- a/api/bundle/extensionAbilityInfo.d.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright (c) 2021 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { ApplicationInfo } from './applicationInfo'; -import { Metadata } from './metadata' -import bundle from './../@ohos.bundle'; - -/** - * @name Obtains extension information about a bundle - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA - * @deprecated since 9 - * @useinstead ohos.bundle.bundleManager.ExtensionAbilityInfo - */ -export interface ExtensionAbilityInfo { - /** - * @default Indicates the name of the bundle - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly bundleName: string; - - /** - * @default Indicates the name of the module - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly moduleName: string; - - /** - * @default Indicates the name of the extension info - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly name: string; - - /** - * @default Indicates the label id of the entension info - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly labelId: number; - - /** - * @default Indicates the description id of the entension info - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly descriptionId: number; - - /** - * @default Indicates the icon id of the entension info - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly iconId: number; - - /** - * @default Indicates whether the entensionInfo can be visible or not - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly isVisible: boolean; - - /** - * @default Enumerates types of the entension info - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly extensionAbilityType: bundle.ExtensionAbilityType; - - /** - * @default The permissions that others need to use this extension info - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly permissions: Array; - - /** - * @default Obtains configuration information about an application - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly applicationInfo: ApplicationInfo; - - /** - * @default Indicates the metadata of bundle - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly metadata: Array; - - /** - * @default Indicates the src language to express extension info - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly enabled: boolean; - - /** - * @default Indicates the read permission extension ability info - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly readPermission: string; - - /** - * @default Indicates the write permission of extension ability info - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly writePermission: string; -} diff --git a/api/bundle/hapModuleInfo.d.ts b/api/bundle/hapModuleInfo.d.ts index c9662744a4..cf1c3282e5 100644 --- a/api/bundle/hapModuleInfo.d.ts +++ b/api/bundle/hapModuleInfo.d.ts @@ -14,8 +14,6 @@ */ import { AbilityInfo } from "./abilityInfo"; -import { ExtensionAbilityInfo } from "./extensionAbilityInfo"; -import { Metadata } from './metadata' /** * @name Obtains configuration information about an module. @@ -116,31 +114,4 @@ export interface HapModuleInfo { * @syscap SystemCapability.BundleManager.BundleFramework */ readonly installationFree: boolean; - - /** - * @default Indicates main elementName of the module - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly mainElementName: string; - - /** - * @default Obtains configuration information about extension ability - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly extensionAbilityInfo: Array; - /** - * @default Indicates the metadata of ability - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * - */ - readonly metadata: Array; - /** - * @default Indicates the hash value of the module - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly hashValue: string; } \ No newline at end of file diff --git a/api/bundle/metadata.d.ts b/api/bundle/metadata.d.ts deleted file mode 100644 index de2c7533d9..0000000000 --- a/api/bundle/metadata.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2021 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - /** - * @name Indicates the Metadata - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA - * @deprecated since 9 - * @useinstead ohos.bundle.bundleManager.Metadata - */ - export interface Metadata { - /** - * @default Indicates the metadata name - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - name: string; - - /** - * @default Indicates the metadata value - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - value: string; - - /** - * @default Indicates the metadata resource - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - resource: string; - } \ No newline at end of file diff --git a/api/bundle/packInfo.d.ts b/api/bundle/packInfo.d.ts deleted file mode 100644 index 1c4a45903d..0000000000 --- a/api/bundle/packInfo.d.ts +++ /dev/null @@ -1,389 +0,0 @@ -/* - * Copyright (c) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @name The bundle pack info class. - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ -export interface BundlePackInfo { - /** - * @default This contains package information in pack.info - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly packages: Array; - - /** - * @default This contains bundle summary information in pack.info - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly summary: PackageSummary; -} - -/** - * @name PackageConfig: the package info class. - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ -export interface PackageConfig { - /** - * @default Indicates the device type of this package - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly deviceType: Array; - - /** - * @default Indicates the name of this package - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly name: string; - - /** - * @default Indicates the module type of this package - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly moduleType: string; - - /** - * @default Indicates whether this package is delivery and install - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly deliveryWithInstall: boolean; -} - -/** - * @name PackageSummary: the package summary class. - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ -export interface PackageSummary { - /** - * @default Indicates the bundle config info of this package - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly app: BundleConfigInfo; - - /** - * @default Indicates the modules config info of this package - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly modules: Array; -} - -/** - * @name BundleConfigInfo: the bundle summary class. - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ -export interface BundleConfigInfo { - /** - * @default Indicates the name of this bundle - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly bundleName: string; - - /** - * @default Indicates the bundle version - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly version: Version; -} - -/** - * @name ExtensionAbilities: the extension ability forms class. - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ - export interface ExtensionAbilities { - /** - * @default Indicates the name of this extension ability - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly name: string; - - /** - * @default Indicates the ability forms info - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly forms: Array; -} - -/** - * @name ModuleConfigInfo: the module summary of a bundle. - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ -export interface ModuleConfigInfo { - /** - * @default Indicates the api version - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly apiVersion: ApiVersion; - - /** - * @default Indicates the devices type - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly deviceType: Array; - - /** - * @default Indicates the module distro info - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly distro: ModuleDistroInfo; - - /** - * @default Indicates the abilities info of this module - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly abilities: Array; - - /** - * @default Indicates extension abilities info of this module - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly extensionAbilities: Array; -} - -/** - * @name ModuleDistroInfo: the bundle info summary class. - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ -export interface ModuleDistroInfo { - /** - * @default Indicates the name of main ability - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly mainAbility: string; - - /** - * @default Indicates is delivery with install - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly deliveryWithInstall: boolean; - - /** - * @default Indicates is free install - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly installationFree: boolean; - - /** - * @default Indicates the module name - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly moduleName: string; - - /** - * @default Indicates the module type - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly moduleType: string; -} - -/** - * @name ModuleAbilityInfo: the ability info of a module. - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ -export interface ModuleAbilityInfo { - /** - * @default Indicates the name of this module ability - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly name: string; - - /** - * @default Indicates the label of this module ability - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly label: string; - - /** - * @default Indicates is visible - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly visible: boolean; - - /** - * @default Indicates the ability forms info - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly forms: Array; -} - -/** - * @name AbilityFormInfo: the form info of an ability. - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ -export interface AbilityFormInfo { - /** - * @default Indicates the name of this ability - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly name: string; - - /** - * @default Indicates the type of this ability - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly type: string; - - /** - * @default Indicates is enabled update - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly updateEnabled: boolean; - - /** - * @default Indicates the scheduled update time - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly scheduledUpdateTime: string; - - /** - * @default Indicates the update duration - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly updateDuration: number; - - /** - * @default Indicates the ability support dimensions - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly supportDimensions: Array; - - /** - * @default Indicates the ability default dimension - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly defaultDimension: number; -} - -/** - * @name Version: the bundle version class. - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ -export interface Version { - /** - * @default Indicates the min compatible code of this version - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly minCompatibleVersionCode: number; - - /** - * @default Indicates the name of this version - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly name: string; - - /** - * @default Indicates the code of this version - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly code: number; -} - -/** - * @name ApiVersion: the bundle Api version class. - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - * @systemapi hide this for inner system use - */ -export interface ApiVersion { - /** - * @default Indicates the min compatible code of this version - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly releaseType: string; - - /** - * @default Indicates the name of this version - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly compatible: number; - - /** - * @default Indicates the code of this version - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly target: number; -} - -/** -* @name BundlePackFlag -* @since 9 -* @syscap SystemCapability.BundleManager.BundleFramework -* @import NA -* @systemapi hide this for inner system use -*/ -export enum BundlePackFlag { - GET_PACK_INFO_ALL = 0x00000000, - GET_PACKAGES = 0x00000001, - GET_BUNDLE_SUMMARY = 0x00000002, - GET_MODULE_SUMMARY = 0x00000004, -} \ No newline at end of file diff --git a/api/bundle/shortcutInfo.d.ts b/api/bundle/shortcutInfo.d.ts index 7b931ae799..353a5241a9 100644 --- a/api/bundle/shortcutInfo.d.ts +++ b/api/bundle/shortcutInfo.d.ts @@ -30,12 +30,6 @@ * @syscap SystemCapability.BundleManager.BundleFramework */ readonly targetBundle: string; - /** - * @default Indicates the target module of the shortcut want - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly targetModule: string; /** * @default Indicates the target class of the shortcut want * @since 7 @@ -126,11 +120,4 @@ * @syscap SystemCapability.BundleManager.BundleFramework */ readonly isEnabled?: boolean; - - /** - * @default Indicates the moduleName of the shortcut - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly moduleName?: string; } \ No newline at end of file -- Gitee From 918050239509012537416cfca45662cc60215810 Mon Sep 17 00:00:00 2001 From: wangtiantian Date: Fri, 28 Oct 2022 11:20:37 +0800 Subject: [PATCH 2/2] IssueNo:#I5W4EA Description:delete bms old api9 Sig:SIG_ApplicaitonFramework Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: wangtiantian --- api/@ohos.bundle.innerBundleManager.d.ts | 2 ++ api/@ohos.multimedia.avsession.d.ts | 2 +- api/application/AbilityContext.d.ts | 6 +++--- api/application/AbilityStageContext.d.ts | 4 ++-- api/application/Context.d.ts | 2 +- api/application/ExtensionContext.d.ts | 2 +- 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/api/@ohos.bundle.innerBundleManager.d.ts b/api/@ohos.bundle.innerBundleManager.d.ts index 30264f6278..f9d0bb358e 100644 --- a/api/@ohos.bundle.innerBundleManager.d.ts +++ b/api/@ohos.bundle.innerBundleManager.d.ts @@ -25,6 +25,8 @@ import { ShortcutInfo } from './bundle/shortcutInfo'; * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA * @systemapi Hide this for inner system use + * @deprecated since 9 + * @useinstead ohos.bundle.launcherBundleManager */ declare namespace innerBundleManager { diff --git a/api/@ohos.multimedia.avsession.d.ts b/api/@ohos.multimedia.avsession.d.ts index ef501b18ea..060f6b6ed0 100644 --- a/api/@ohos.multimedia.avsession.d.ts +++ b/api/@ohos.multimedia.avsession.d.ts @@ -16,7 +16,7 @@ import { AsyncCallback } from './basic'; import { WantAgent } from '@ohos.wantAgent'; import KeyEvent from './@ohos.multimodalInput.keyEvent'; -import { ElementName } from './bundle/elementName'; +import { ElementName } from './bundleManager/elementName'; import image from './@ohos.multimedia.image'; import audio from './@ohos.multimedia.audio'; diff --git a/api/application/AbilityContext.d.ts b/api/application/AbilityContext.d.ts index ffa23b2ef0..a0a0452916 100755 --- a/api/application/AbilityContext.d.ts +++ b/api/application/AbilityContext.d.ts @@ -15,16 +15,16 @@ /// -import { AbilityInfo } from "../bundle/abilityInfo"; +import { AbilityInfo } from "../bundleManager/abilityInfo"; import { AbilityResult } from "../ability/abilityResult"; import { AsyncCallback } from "../basic"; import { ConnectOptions } from "../ability/connectOptions"; -import { HapModuleInfo } from "../bundle/hapModuleInfo"; +import { HapModuleInfo } from "../bundleManager/hapModuleInfo"; import Context from "./Context"; import Want from "../@ohos.application.Want"; import StartOptions from "../@ohos.app.ability.StartOptions"; import PermissionRequestResult from "./PermissionRequestResult"; -import { Configuration } from '../@ohos.application.Configuration'; +import { Configuration } from '../@ohos.app.ability.Configuration'; import { Caller } from '../@ohos.app.ability.Ability'; import { LocalStorage } from 'StateManagement'; import image from '../@ohos.multimedia.image'; diff --git a/api/application/AbilityStageContext.d.ts b/api/application/AbilityStageContext.d.ts index 4b2777b37d..d5feff64cf 100644 --- a/api/application/AbilityStageContext.d.ts +++ b/api/application/AbilityStageContext.d.ts @@ -13,8 +13,8 @@ * limitations under the License. */ -import { HapModuleInfo } from "../bundle/hapModuleInfo"; -import { Configuration } from '../@ohos.application.Configuration'; +import { HapModuleInfo } from "../bundleManager/hapModuleInfo"; +import { Configuration } from '../@ohos.app.ability.Configuration'; import Context from "./Context"; /** diff --git a/api/application/Context.d.ts b/api/application/Context.d.ts index 32aeb23e08..67b1316ac0 100755 --- a/api/application/Context.d.ts +++ b/api/application/Context.d.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { ApplicationInfo } from "../bundle/applicationInfo"; +import { ApplicationInfo } from "../bundleManager/applicationInfo"; import resmgr from "../@ohos.resourceManager"; import BaseContext from "./BaseContext"; import EventHub from "./EventHub"; diff --git a/api/application/ExtensionContext.d.ts b/api/application/ExtensionContext.d.ts index 7f7c100221..472c447193 100644 --- a/api/application/ExtensionContext.d.ts +++ b/api/application/ExtensionContext.d.ts @@ -14,7 +14,7 @@ */ import { HapModuleInfo } from "../bundleManager/hapModuleInfo"; -import { Configuration } from '../@ohos.application.Configuration'; +import { Configuration } from '../@ohos.app.ability.Configuration'; import Context from "./Context"; import { ExtensionAbilityInfo } from "../bundleManager/extensionAbilityInfo"; -- Gitee