Commit 04189564 by sikang

update script

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