diff --git a/services/BUILD.gn b/services/BUILD.gn index 56722a036d126547143723f44e97ed8bf4a6db87..aadf0c6cb51a29df4e8f2915fba5a2730025c194 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 4be8a1fc9026debe87c15a6e383a863e95b5194b..c1aba095e52e08060eb0fcbef1a3f8c22cb429b7 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 */