From e6e6d42a38ab65be2e65d5e67883360ec23ebdbc Mon Sep 17 00:00:00 2001 From: "zhangyafei.echo" Date: Wed, 31 Aug 2022 11:41:40 +0800 Subject: [PATCH] Description:Add appQuickFixInfo to bundleInfo. Sig:SIG_ApplicationFramework Feature or BugFix: Feature Binary Source: No Signed-off-by: zhangyafei.echo Change-Id: I24bd12b2f13916ddbfc010b0934f8462f6ccbc4a --- api/bundle/applicaitonQuickFixInfo.d.ts | 102 ++++++++++++++++++++++++ api/bundle/bundleInfo.d.ts | 8 ++ 2 files changed, 110 insertions(+) create mode 100644 api/bundle/applicaitonQuickFixInfo.d.ts diff --git a/api/bundle/applicaitonQuickFixInfo.d.ts b/api/bundle/applicaitonQuickFixInfo.d.ts new file mode 100644 index 0000000000..c684e54deb --- /dev/null +++ b/api/bundle/applicaitonQuickFixInfo.d.ts @@ -0,0 +1,102 @@ +/* + * 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. + */ + +/** + * Quick fix info of hap module. + * + * @since 9 + * @syscap SystemCapability.Ability.AbilityRuntime.QuickFix + */ + export interface HapModuleQuickFixInfo { + /** + * Indicates hap module name. + * + * @since 9 + * @syscap SystemCapability.Ability.AbilityRuntime.QuickFix + */ + readonly moduleName: string; + + /** + * Indicates sha256 of a hap. + * + * @since 9 + * @syscap SystemCapability.Ability.AbilityRuntime.QuickFix + */ + readonly moduleSha256: string; + + /** + * Indicates path of quick fix file. + * + * @since 9 + * @syscap SystemCapability.Ability.AbilityRuntime.QuickFix + */ + readonly quickFixFilePath: string; +} + +/** + * Quick fix info of application. + * + * @since 9 + * @syscap SystemCapability.Ability.AbilityRuntime.QuickFix + */ +export interface ApplicationQuickFixInfo { + /** + * Bundle name. + * + * @since 9 + * @syscap SystemCapability.Ability.AbilityRuntime.QuickFix + */ + readonly bundleName: string; + + /** + * the version number of the bundle. + * + * @since 9 + * @syscap SystemCapability.Ability.AbilityRuntime.QuickFix + */ + readonly bundleVersionCode: number; + + /** + * the version name of the bundle. + * + * @since 9 + * @syscap SystemCapability.Ability.AbilityRuntime.QuickFix + */ + readonly bundleVersionName: string; + + /** + * the version number of the quick fix. + * + * @since 9 + * @syscap SystemCapability.Ability.AbilityRuntime.QuickFix + */ + readonly quickFixVersionCode: number; + + /** + * the version name of the quick fix. + * + * @since 9 + * @syscap SystemCapability.Ability.AbilityRuntime.QuickFix + */ + readonly quickFixVersionName: string; + + /** + * hap module quick fix infos. + * + * @since 9 + * @syscap SystemCapability.Ability.AbilityRuntime.QuickFix + */ + readonly hapModuleQuickFixInfo: Array; +} \ No newline at end of file diff --git a/api/bundle/bundleInfo.d.ts b/api/bundle/bundleInfo.d.ts index 4da8310f43..0e965fb31b 100644 --- a/api/bundle/bundleInfo.d.ts +++ b/api/bundle/bundleInfo.d.ts @@ -17,6 +17,7 @@ import { AbilityInfo } from './abilityInfo'; import { ApplicationInfo } from './applicationInfo'; import { ExtensionAbilityInfo } from './extensionAbilityInfo'; import { HapModuleInfo } from './hapModuleInfo'; +import { ApplicationQuickFixInfo } from './applicationQuickFixInfo' /** * @name The scene which is used @@ -256,4 +257,11 @@ export interface BundleInfo { * @syscap SystemCapability.BundleManager.BundleFramework */ readonly extensionAbilityInfo: Array; + + /** + * @default Obtains quick fix information + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly ApplicationQuickFixInfo: ApplicationQuickFixInfo; } -- Gitee