From f124d5278da9a2e83d8a4b0ea4bfc3c79c4f7f9b Mon Sep 17 00:00:00 2001 From: yangbo <1442420648@qq.com> Date: Thu, 9 Jun 2022 15:01:14 +0800 Subject: [PATCH] delete bundle_api Signed-off-by: yangbo <1442420648@qq.com> Change-Id: Iecc1382e4e79f11826fad0f91cacfadf81e1f7e6 --- BUILD.gn | 8 +--- api/bundle/bundleStatusCallback.d.ts | 57 ---------------------------- 2 files changed, 1 insertion(+), 64 deletions(-) delete mode 100644 api/bundle/bundleStatusCallback.d.ts diff --git a/BUILD.gn b/BUILD.gn index c391c067f4..6ca8fc77b1 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -123,13 +123,6 @@ ohos_copy("common_api") { module_install_name = "" } -ohos_copy("bundle_api") { - sources = [ "api/bundle/bundleStatusCallback.d.ts" ] - outputs = [ target_out_dir + "/$target_name/{{source_file_part}}" ] - module_source_dir = target_out_dir + "/$target_name" - module_install_name = "" -} - template("ohos_declaration_template") { forward_variables_from(invoker, "*") action_with_pydeps(target_name) { @@ -163,6 +156,7 @@ ohos_copy("internal_full") { sources = [ "api/common/full/console.d.ts", "api/common/full/dom.d.ts", + "api/common/full/featureability.d.ts", "api/common/full/global.d.ts", "api/common/full/index.d.ts", "api/common/full/viewmodel.d.ts", diff --git a/api/bundle/bundleStatusCallback.d.ts b/api/bundle/bundleStatusCallback.d.ts deleted file mode 100644 index d42bbf2329..0000000000 --- a/api/bundle/bundleStatusCallback.d.ts +++ /dev/null @@ -1,57 +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. - */ - -/** - * Contains basic Ability information, which uniquely identifies an launcher StatusCallback. - * You can use this class to obtain values of the fields set in an callback function, - * such as the add, update, remove. - * @name Contains basic launcher status callback information, which uniquely identifies an LauncherStatusCallback - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - * - * @permission ohos.permission.LISTEN_BUNDLE_CHANGE - * @systemapi Hide this for inner system use - */ -declare interface BundleStatusCallback { - /** - * @name Obtains add callback about an launcherStatusCallback. - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - * @permission ohos.permission.LISTEN_BUNDLE_CHANGE - * - * @systemapi Hide this for inner system use - */ - add: (bundleName : string, userId: number) => void; - - /** - * @name Obtains update callback about an launcherStatusCallback. - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - * @permission ohos.permission.LISTEN_BUNDLE_CHANGE - * - * @systemapi Hide this for inner system use - */ - update: (bundleName : string, userId: number) => void; - - /** - * @name Obtains remove callback about an launcherStatusCallback. - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - * @permission ohos.permission.LISTEN_BUNDLE_CHANGE - * - * @systemapi Hide this for inner system use - */ - remove: (bundleName : string, userId: number) => void; -} \ No newline at end of file -- Gitee