From b8847a418cc9c88b498f06f69f9f7aab56e92f72 Mon Sep 17 00:00:00 2001 From: lixiangpeng5 Date: Fri, 10 May 2024 11:45:17 +0000 Subject: [PATCH] fix static library Signed-off-by: lixiangpeng5 Change-Id: I073ccfb58d1130216212b9f1ed7500970ed9e68a --- services/BUILD.gn | 4 ++-- .../interfaces/js/sensor/common/CommonConstants.js | 7 +------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/services/BUILD.gn b/services/BUILD.gn index 56722a03..aadf0c6c 100644 --- a/services/BUILD.gn +++ b/services/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2023 Huawei Device Co., Ltd. +# Copyright (c) 2021-2024 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 @@ -97,7 +97,7 @@ ohos_shared_library("libsensor_service") { } ########################################################################## -ohos_shared_library("libsensor_service_static") { +ohos_static_library("libsensor_service_static") { sources = [ "src/client_info.cpp", "src/fifo_cache_data.cpp", diff --git a/test/unittest/interfaces/js/sensor/common/CommonConstants.js b/test/unittest/interfaces/js/sensor/common/CommonConstants.js index 4be8a1fc..c1aba095 100755 --- a/test/unittest/interfaces/js/sensor/common/CommonConstants.js +++ b/test/unittest/interfaces/js/sensor/common/CommonConstants.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Huawei Device Co., Ltd. + * Copyright (c) 2023-2024 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 @@ -42,11 +42,6 @@ export default class CommonConstants { */ static SERVICE_EXCEPTION_CODE = 14500101; - /** - * Exception code of sensor not supported - */ - static SENSOR_NO_SUPPORT = 14500102; - /** * Exception code of sensorId no support */ -- Gitee