diff --git a/entry/oh_modules/static_module/src/main/cpp/napi_har.h b/entry/oh_modules/static_module/src/main/cpp/napi_har.h index 84d15a739d7454ead9636d845b8139114e3bff35..a419b4210729a2b75d2215aa02487d903b6bb668 100644 --- a/entry/oh_modules/static_module/src/main/cpp/napi_har.h +++ b/entry/oh_modules/static_module/src/main/cpp/napi_har.h @@ -12,15 +12,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - +// [Start napi_har_start] // [Start har_start] // staticModule\src\main\cpp\napi_har.h #ifndef CROSSMODULEREFERENCE_NAPI_HAR_H #define CROSSMODULEREFERENCE_NAPI_HAR_H #include +// [StartExclude napi_har_start] napi_env g_main_env; void setHarEnv(napi_env env); +// [EndExclude napi_har_start] double harNativeAdd(double a, double b); napi_value harArkTSAdd(double a, double b); #endif //CROSSMODULEREFERENCE_NAPI_HAR_H -// [End har_start] \ No newline at end of file +// [End har_start] +// [End napi_har_start] \ No newline at end of file diff --git a/staticModule/src/main/cpp/napi_har1.h b/staticModule/src/main/cpp/napi_har1.h deleted file mode 100644 index 8c9cf7ad9c8112819d897d93c9a5300aaa830cf8..0000000000000000000000000000000000000000 --- a/staticModule/src/main/cpp/napi_har1.h +++ /dev/null @@ -1,23 +0,0 @@ -/* -* Copyright (C) 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 -* -* 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. -*/ - -// [Start napi_har_start] -// staticModule\src\main\cpp\napi_har.h -#ifndef CROSSMODULEREFERENCE_NAPI_HAR_H -#define CROSSMODULEREFERENCE_NAPI_HAR_H -#include -double harNativeAdd(double a, double b); -#endif //CROSSMODULEREFERENCE_NAPI_HAR_H -// [End napi_har_start] \ No newline at end of file