Commit 227ac363 by sikang

bug fix

parent e9442248
......@@ -29,14 +29,14 @@ class ManifestGarble:
return activities
def __insert_to_manifest(self,path,activitys):
def __insert_to_manifest(self,path,activities):
file_content = ""
with open(path,"r",encoding="utf-8") as fin:
file_content = fin.read()
for activity in activitys:
for activity in activities:
code = "<activity android:name=\"%s\" />"%activity
file_content = file_content.replace("</application>","%s\n</application>",code)
file_content = file_content.replace("</application>","%s\n</application>"%code)
with open(path,"w",encoding="utf-8") as fout:
fout.write(file_content)
......
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