From c52a847e5f1743f1bdf3bb3c84e327acb1ea65fa Mon Sep 17 00:00:00 2001 From: 18629082792 Date: Wed, 29 Dec 2021 22:35:49 +0800 Subject: [PATCH] delete unused api Signed-off-by: 18629082792 --- api/common/@system.bluetooth.d.ts | 86 ----------------------------- api/phone/@system.bluetooth.d.ts | 79 -------------------------- api/tablet/@system.bluetooth.d.ts | 79 -------------------------- api/tv/@system.bluetooth.d.ts | 79 -------------------------- api/wearable/@system.bluetooth.d.ts | 79 -------------------------- 5 files changed, 402 deletions(-) delete mode 100644 api/common/@system.bluetooth.d.ts delete mode 100644 api/phone/@system.bluetooth.d.ts delete mode 100644 api/tablet/@system.bluetooth.d.ts delete mode 100644 api/tv/@system.bluetooth.d.ts delete mode 100644 api/wearable/@system.bluetooth.d.ts diff --git a/api/common/@system.bluetooth.d.ts b/api/common/@system.bluetooth.d.ts deleted file mode 100644 index e3f38c1fa9..0000000000 --- a/api/common/@system.bluetooth.d.ts +++ /dev/null @@ -1,86 +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 StartBLEScanOptions { - interval: number; - - success: () => void; - - fail: (data: string, code: number) => void; - - complete: () => void; -} - -export interface StopBLEScanOptions { - success: () => void; - - fail: (data: string, code: number) => void; - - complete: () => void; -} - -export interface BluetoothDevice { - addrType: "public" | "random"; - - addr: string; - - rssi: number; - - txpower: string; - - data: string; -} - -export interface BLEFoundResponse { - devices: Array; -} - -export interface SubscribeBLEFoundOptions{ - success: (data: BLEFoundResponse) => void; - - fail: (data: string, code: number) => void; -} - -/** - * @devices phone, tv, wearable - */ -export default class Bluetooth { - /** - * Start BLE scan - * @devices phone, tablet, tv, wearable - * @param options Options - */ - static startBLEScan(options: StartBLEScanOptions): void; - - /** - * Stop BLE scan - * @devices phone, tablet, tv, wearable - * @param options Options - */ - static stopBLEScan(options: StopBLEScanOptions): void; - - /** - * Subscribe BLE found - * @devices phone, tablet, tv, wearable - * @param options Options - */ - static subscribeBLEFound(options: SubscribeBLEFoundOptions): void; - - /** - * Stop the subscription of BLE found - * @devices phone, tablet, tv, wearable - */ - static unsubscribeBLEFound(): void; -} \ No newline at end of file diff --git a/api/phone/@system.bluetooth.d.ts b/api/phone/@system.bluetooth.d.ts deleted file mode 100644 index 3b113373c3..0000000000 --- a/api/phone/@system.bluetooth.d.ts +++ /dev/null @@ -1,79 +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 StartBLEScanOptions { - interval: number; - - success: () => void; - - fail: (data: string, code: number) => void; - - complete: () => void; -} - -export interface StopBLEScanOptions { - success: () => void; - - fail: (data: string, code: number) => void; - - complete: () => void; -} - -export interface BluetoothDevice { - addrType: "public" | "random"; - - addr: string; - - rssi: number; - - txpower: string; - - data: string; -} - -export interface BLEFoundResponse { - devices: Array; -} - -export interface SubscribeBLEFoundOptions{ - success: (data: BLEFoundResponse) => void; - - fail: (data: string, code: number) => void; -} - -export default class Bluetooth { - /** - * Start BLE scan - * @param options Options - */ - static startBLEScan(options: StartBLEScanOptions): void; - - /** - * Stop BLE scan - * @param options Options - */ - static stopBLEScan(options: StopBLEScanOptions): void; - - /** - * Subscribe BLE found - * @param options Options - */ - static subscribeBLEFound(options: SubscribeBLEFoundOptions): void; - - /** - * Stop the subscription of BLE found - */ - static unsubscribeBLEFound(): void; -} \ No newline at end of file diff --git a/api/tablet/@system.bluetooth.d.ts b/api/tablet/@system.bluetooth.d.ts deleted file mode 100644 index 3b113373c3..0000000000 --- a/api/tablet/@system.bluetooth.d.ts +++ /dev/null @@ -1,79 +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 StartBLEScanOptions { - interval: number; - - success: () => void; - - fail: (data: string, code: number) => void; - - complete: () => void; -} - -export interface StopBLEScanOptions { - success: () => void; - - fail: (data: string, code: number) => void; - - complete: () => void; -} - -export interface BluetoothDevice { - addrType: "public" | "random"; - - addr: string; - - rssi: number; - - txpower: string; - - data: string; -} - -export interface BLEFoundResponse { - devices: Array; -} - -export interface SubscribeBLEFoundOptions{ - success: (data: BLEFoundResponse) => void; - - fail: (data: string, code: number) => void; -} - -export default class Bluetooth { - /** - * Start BLE scan - * @param options Options - */ - static startBLEScan(options: StartBLEScanOptions): void; - - /** - * Stop BLE scan - * @param options Options - */ - static stopBLEScan(options: StopBLEScanOptions): void; - - /** - * Subscribe BLE found - * @param options Options - */ - static subscribeBLEFound(options: SubscribeBLEFoundOptions): void; - - /** - * Stop the subscription of BLE found - */ - static unsubscribeBLEFound(): void; -} \ No newline at end of file diff --git a/api/tv/@system.bluetooth.d.ts b/api/tv/@system.bluetooth.d.ts deleted file mode 100644 index 3b113373c3..0000000000 --- a/api/tv/@system.bluetooth.d.ts +++ /dev/null @@ -1,79 +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 StartBLEScanOptions { - interval: number; - - success: () => void; - - fail: (data: string, code: number) => void; - - complete: () => void; -} - -export interface StopBLEScanOptions { - success: () => void; - - fail: (data: string, code: number) => void; - - complete: () => void; -} - -export interface BluetoothDevice { - addrType: "public" | "random"; - - addr: string; - - rssi: number; - - txpower: string; - - data: string; -} - -export interface BLEFoundResponse { - devices: Array; -} - -export interface SubscribeBLEFoundOptions{ - success: (data: BLEFoundResponse) => void; - - fail: (data: string, code: number) => void; -} - -export default class Bluetooth { - /** - * Start BLE scan - * @param options Options - */ - static startBLEScan(options: StartBLEScanOptions): void; - - /** - * Stop BLE scan - * @param options Options - */ - static stopBLEScan(options: StopBLEScanOptions): void; - - /** - * Subscribe BLE found - * @param options Options - */ - static subscribeBLEFound(options: SubscribeBLEFoundOptions): void; - - /** - * Stop the subscription of BLE found - */ - static unsubscribeBLEFound(): void; -} \ No newline at end of file diff --git a/api/wearable/@system.bluetooth.d.ts b/api/wearable/@system.bluetooth.d.ts deleted file mode 100644 index 3b113373c3..0000000000 --- a/api/wearable/@system.bluetooth.d.ts +++ /dev/null @@ -1,79 +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 StartBLEScanOptions { - interval: number; - - success: () => void; - - fail: (data: string, code: number) => void; - - complete: () => void; -} - -export interface StopBLEScanOptions { - success: () => void; - - fail: (data: string, code: number) => void; - - complete: () => void; -} - -export interface BluetoothDevice { - addrType: "public" | "random"; - - addr: string; - - rssi: number; - - txpower: string; - - data: string; -} - -export interface BLEFoundResponse { - devices: Array; -} - -export interface SubscribeBLEFoundOptions{ - success: (data: BLEFoundResponse) => void; - - fail: (data: string, code: number) => void; -} - -export default class Bluetooth { - /** - * Start BLE scan - * @param options Options - */ - static startBLEScan(options: StartBLEScanOptions): void; - - /** - * Stop BLE scan - * @param options Options - */ - static stopBLEScan(options: StopBLEScanOptions): void; - - /** - * Subscribe BLE found - * @param options Options - */ - static subscribeBLEFound(options: SubscribeBLEFoundOptions): void; - - /** - * Stop the subscription of BLE found - */ - static unsubscribeBLEFound(): void; -} \ No newline at end of file -- Gitee