From a1397629ca5415e81663f28a31ec4379f38495fa Mon Sep 17 00:00:00 2001 From: zhangxCode Date: Fri, 4 Jul 2025 08:26:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=BA=90=E6=A0=87=E8=AF=86=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static_module/src/main/cpp/napi_har.h | 7 ++++-- staticModule/src/main/cpp/napi_har1.h | 23 ------------------- 2 files changed, 5 insertions(+), 25 deletions(-) delete mode 100644 staticModule/src/main/cpp/napi_har1.h 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 84d15a7..a419b42 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 8c9cf7a..0000000 --- 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 -- Gitee