From 3df4862fde85ec9c16783fc5336f7f7991fa6488 Mon Sep 17 00:00:00 2001 From: shuaiyutao Date: Wed, 29 Dec 2021 17:53:56 +0800 Subject: [PATCH] delete unused d.ts Signed-off-by: shuaiyutao --- BUILD.gn | 1 - api/common/@system.package.d.ts | 68 ------------------------------- api/phone/@system.package.d.ts | 59 --------------------------- api/tablet/@system.package.d.ts | 57 -------------------------- api/tv/@system.package.d.ts | 57 -------------------------- api/wearable/@system.package.d.ts | 57 -------------------------- 6 files changed, 299 deletions(-) delete mode 100644 api/common/@system.package.d.ts delete mode 100644 api/phone/@system.package.d.ts delete mode 100644 api/tablet/@system.package.d.ts delete mode 100644 api/tv/@system.package.d.ts delete mode 100644 api/wearable/@system.package.d.ts diff --git a/BUILD.gn b/BUILD.gn index 4c6cde1159..1eb0db25ef 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -125,7 +125,6 @@ ohos_copy("common_api") { "api/common/@system.mediaquery.d.ts", "api/common/@system.network.d.ts", "api/common/@system.notification.d.ts", - "api/common/@system.package.d.ts", "api/common/@system.prompt.d.ts", "api/common/@system.request.d.ts", "api/common/@system.router.d.ts", diff --git a/api/common/@system.package.d.ts b/api/common/@system.package.d.ts deleted file mode 100644 index 4075447959..0000000000 --- a/api/common/@system.package.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2020 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. - */ - -/** - * @devices tv, phone, tablet, wearable - */ -export interface CheckPackageHasInstalledResponse { - /** - * Whether the application exists, or whether the native application has been installed. - * @devices tv, phone, tablet, wearable - * @since 3 - */ - result: boolean; -} - -export interface CheckPackageHasInstalledOptions { - /** - * Application bundle name. - * @devices tv, phone, tablet, wearable - * @since 3 - */ - bundleName: string; - - /** - * Called when native applications are installed. - * @devices tv, phone, tablet, wearable - * @since 3 - */ - success?: (data: CheckPackageHasInstalledResponse) => void; - - /** - * Called when native applications fail to be installed. - * @devices tv, phone, tablet, wearable - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @devices tv, phone, tablet, wearable - * @since 3 - */ - complete?: () => void; -} - -/** - * @devices tv, phone, tablet, wearable - */ -export default class Package { - /** - * Checks whether an application exists, or whether a native application has been installed. - * @param options Options. - * @devices tv, phone, tablet, wearable - */ - static hasInstalled(options: CheckPackageHasInstalledOptions): void; -} diff --git a/api/phone/@system.package.d.ts b/api/phone/@system.package.d.ts deleted file mode 100644 index bcb4282084..0000000000 --- a/api/phone/@system.package.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) 2020 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. - */ - -export interface CheckPackageHasInstalledResponse { - /** - * Whether the application exists, or whether the native application has been installed. - * @since 3 - */ - result: boolean; -} - -export interface CheckPackageHasInstalledOptions { - /** - * Application bundle name. - * @since 3 - */ - bundleName: string; - - /** - * Called when native applications are installed. - * @since 3 - */ - success?: (data: CheckPackageHasInstalledResponse) => void; - - /** - * Called when native applications fail to be installed. - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; -} - -/** - * @Syscap SysCap.ACE.UIEngine - */ -export default class Package { - /** - * Checks whether an application exists, or whether a native application has been installed. - * @param options - */ - static hasInstalled(options: CheckPackageHasInstalledOptions): void; -} diff --git a/api/tablet/@system.package.d.ts b/api/tablet/@system.package.d.ts deleted file mode 100644 index 2a918ec35a..0000000000 --- a/api/tablet/@system.package.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2020 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. - */ - -export interface CheckPackageHasInstalledResponse { - /** - * Whether the application exists, or whether the native application has been installed. - * @since 3 - */ - result: boolean; -} - -/** - * @Syscap SysCap.ACE.UIEngine - */ -export default class Package { - /** - * Checks whether an application exists, or whether a native application has been installed. - * @param options - */ - static hasInstalled(options: { - /** - * Application bundle name. - * @since 3 - */ - bundleName: string; - - /** - * Called when native applications are installed.\ - * @since 3 - */ - success?: (data: CheckPackageHasInstalledResponse) => void; - - /** - * Called when native applications fail to be installed. - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; -} diff --git a/api/tv/@system.package.d.ts b/api/tv/@system.package.d.ts deleted file mode 100644 index 6dbaf27ac9..0000000000 --- a/api/tv/@system.package.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2020 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. - */ - -export interface CheckPackageHasInstalledResponse { - /** - * Whether the application exists, or whether the native application has been installed. - * @since 3 - */ - result: boolean; -} - -/** - * @Syscap SysCap.ACE.UIEngine - */ -export default class Package { - /** - * Checks whether an application exists, or whether a native application has been installed. - * @param options - */ - static hasInstalled(options: { - /** - * Application bundle name. - * @since 3 - */ - bundleName: string; - - /** - * Called when native applications are installed. - * @since 3 - */ - success?: (data: CheckPackageHasInstalledResponse) => void; - - /** - * Called when native applications fail to be installed. - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; -} diff --git a/api/wearable/@system.package.d.ts b/api/wearable/@system.package.d.ts deleted file mode 100644 index 6dbaf27ac9..0000000000 --- a/api/wearable/@system.package.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2020 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. - */ - -export interface CheckPackageHasInstalledResponse { - /** - * Whether the application exists, or whether the native application has been installed. - * @since 3 - */ - result: boolean; -} - -/** - * @Syscap SysCap.ACE.UIEngine - */ -export default class Package { - /** - * Checks whether an application exists, or whether a native application has been installed. - * @param options - */ - static hasInstalled(options: { - /** - * Application bundle name. - * @since 3 - */ - bundleName: string; - - /** - * Called when native applications are installed. - * @since 3 - */ - success?: (data: CheckPackageHasInstalledResponse) => void; - - /** - * Called when native applications fail to be installed. - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; -} -- Gitee