Commit bac5e685 authored by wanglei's avatar wanglei

...混淆前定位

parent b6ac852b
...@@ -202,6 +202,9 @@ def sub_map_text_impl(mapping, result, skip_type, skip_name, is_reverse=True, pa ...@@ -202,6 +202,9 @@ def sub_map_text_impl(mapping, result, skip_type, skip_name, is_reverse=True, pa
continue continue
sub_map_text_impl(mapping, result, skip_type, skip_name, is_reverse, path_join) sub_map_text_impl(mapping, result, skip_type, skip_name, is_reverse, path_join)
elif os.path.isfile(path_join): elif os.path.isfile(path_join):
if os.path.basename(path_join)=="attr.xml":
print(f"跳过 {path_join}")
continue
if path.endswith('.') and os.path.splitext(i)[-1][1:] not in ["pro"]: if path.endswith('.') and os.path.splitext(i)[-1][1:] not in ["pro"]:
continue continue
if os.path.splitext(i)[-1][1:] in skip_type: if os.path.splitext(i)[-1][1:] in skip_type:
...@@ -224,6 +227,8 @@ def sub_map_text_impl(mapping, result, skip_type, skip_name, is_reverse=True, pa ...@@ -224,6 +227,8 @@ def sub_map_text_impl(mapping, result, skip_type, skip_name, is_reverse=True, pa
reverse = sorted(list(mapping.keys()), key=len, reverse=is_reverse) reverse = sorted(list(mapping.keys()), key=len, reverse=is_reverse)
text_result = text text_result = text
for name in reverse: for name in reverse:
if "R\\.styleable" in name:
continue
text_result = re2.sub(str(name), mapping[name], text_result) text_result = re2.sub(str(name), mapping[name], text_result)
if text_result != text: if text_result != text:
result.append(path_join) result.append(path_join)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment