From 01f43048ea333e7681fbd4846d91e7d816d83878 Mon Sep 17 00:00:00 2001 From: Liuyf Date: Sat, 11 Jan 2025 15:06:32 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20cn=E3=80=81com=E5=8C=BA=E5=9F=9F=E6=89=93?= =?UTF-8?q?=E5=8C=85=E9=80=BB=E8=BE=91=E5=88=86=E7=A6=BB=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/fastlane/Fastfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/android/fastlane/Fastfile b/android/fastlane/Fastfile index 7e94bf29..905af956 100644 --- a/android/fastlane/Fastfile +++ b/android/fastlane/Fastfile @@ -153,10 +153,10 @@ platform :android do puts "start prepare zone: #{zone},pathList:#{pathList},extensions:#{extensions}" regexp_List = [/#<#{zone}>.*?#<\/#{zone}>/m,/\/\/\<#{zone}\>.*?\/\/\<\/#{zone}\>/m] UI.message("Processed RegExpList: #{regexp_List}") - def process_file(file_path, regexp_List) + def process_file(file_path, regexpList) content = File.read(file_path) - regexp_List.each do |tag| - content = content.gsub(tag) + regexpList.each do |tag| + content = content.gsub(tag,'><') end File.write(file_path, content) UI.message("Processed file: #{file_path},content : #{content}") @@ -167,11 +167,11 @@ platform :android do if File.directory?(realPath) Dir.glob("#{realPath}/**/*").each do |file| if extensions.include?(File.extname(file)) - process_file(file) + process_file(file,regexp_List) end end elsif File.file?(realPath) - process_file(realPath) + process_file(realPath,regexp_List) else UI.message("Invalid path: #{realPath}") end