From 62351fc2a33b1b038a1f6f10bcdb6bb5fe296eb4 Mon Sep 17 00:00:00 2001 From: zzz701 Date: Thu, 28 Aug 2025 10:30:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A3=80=E8=A7=86=E6=84=8F?= =?UTF-8?q?=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zzz701 --- build-tools/clean_ndk_ani.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build-tools/clean_ndk_ani.py b/build-tools/clean_ndk_ani.py index 9249bc83fce..783bea743ac 100755 --- a/build-tools/clean_ndk_ani.py +++ b/build-tools/clean_ndk_ani.py @@ -82,7 +82,8 @@ def clean_ndk_ani_headers(ndk_header_path): process_header_file(file_path) -def clean_json__systemCapability_headers(capability_header_path): +# Clear the ani header file in the systemCapability configuration json file +def clean_json_systemCapability_headers(capability_header_path): try: with open(capability_header_path, 'r') as f: systemCapabilitys = json.load(f) @@ -94,7 +95,7 @@ def clean_json__systemCapability_headers(capability_header_path): for _systemCapability in systemCapabilitys: # filtering ani header file systemCapabilitys[_systemCapability] = [item for item in systemCapabilitys[_systemCapability] - if os.path.basename(item) not in _ANI_HEADER_LISTS] + if os.path.basename(item) not in _ANI_HEADER_LISTS] # Saving the modified JSON try: @@ -116,7 +117,7 @@ def main(): return clean_ndk_ani_headers(args.ndk_header_path) - clean_json__systemCapability_headers(args.system_capability_header_config) + clean_json_systemCapability_headers(args.system_capability_header_config) print("Ani Header file cleanup complete!") -- Gitee