Commit 04189564 by sikang

update script

parent 707d80a2
...@@ -12,13 +12,14 @@ with open(path, "r", encoding="utf-8") as f: ...@@ -12,13 +12,14 @@ with open(path, "r", encoding="utf-8") as f:
with open(path, "w", encoding="utf-8") as f_w: with open(path, "w", encoding="utf-8") as f_w:
isPermissionDoce = False isPermissionDoce = False
isFinished = False;
for line in lines: for line in lines:
if "<uses-permission" in line: if "<uses-permission" in line:
isPermissionDoce = True isPermissionDoce = True
if "<application" in line: if "<application" in line:
isPermissionDoce = False isFinished = True
break
if isPermissionDoce and not isFinished:
line = "<!-- " + line.replace("\n"," -->\n")
if "org.gradle.jvmargs" in line:
line = "<!-- " + line + " -->"
f_w.write(line) f_w.write(line)
\ No newline at end of file
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