|
@@ -284,12 +284,12 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
|
|
else:
|
|
else:
|
|
f.write(indented_str(0, ""))
|
|
f.write(indented_str(0, ""))
|
|
elif "API.connect" in line:
|
|
elif "API.connect" in line:
|
|
- line.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
|
|
|
|
|
|
+ line_appid = line.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
|
|
if mode == "floating":
|
|
if mode == "floating":
|
|
- replaced = line.replace("0", "1")
|
|
|
|
|
|
+ replaced = line_appid.replace("0", "1")
|
|
f.write(replaced)
|
|
f.write(replaced)
|
|
else:
|
|
else:
|
|
- f.write(line)
|
|
|
|
|
|
+ f.write(line_appid)
|
|
else:
|
|
else:
|
|
f.write(line)
|
|
f.write(line)
|
|
with open(xml_menu_path, "r") as f:
|
|
with open(xml_menu_path, "r") as f:
|
|
@@ -617,12 +617,12 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
|
|
else:
|
|
else:
|
|
f.write(indented_str(0, ""))
|
|
f.write(indented_str(0, ""))
|
|
elif "API.connect" in line:
|
|
elif "API.connect" in line:
|
|
- line.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
|
|
|
|
|
|
+ line_appid = line.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
|
|
if mode == "floating":
|
|
if mode == "floating":
|
|
- replaced = line.replace("0", "1")
|
|
|
|
|
|
+ replaced = line_appid.replace("0", "1")
|
|
f.write(replaced)
|
|
f.write(replaced)
|
|
else:
|
|
else:
|
|
- f.write(line)
|
|
|
|
|
|
+ f.write(line_appid)
|
|
else:
|
|
else:
|
|
f.write(line)
|
|
f.write(line)
|
|
write_android_manifest(manifest_path, features, security)
|
|
write_android_manifest(manifest_path, features, security)
|
|
@@ -858,12 +858,12 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
|
|
else:
|
|
else:
|
|
f.write(indented_str(0, "", spaces=2))
|
|
f.write(indented_str(0, "", spaces=2))
|
|
elif "API.connect" in line:
|
|
elif "API.connect" in line:
|
|
- line.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
|
|
|
|
|
|
+ line_appid = line.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
|
|
if mode == "floating":
|
|
if mode == "floating":
|
|
- replaced = line.replace("0", "1")
|
|
|
|
|
|
+ replaced = line_appid.replace("0", "1")
|
|
f.write(replaced)
|
|
f.write(replaced)
|
|
else:
|
|
else:
|
|
- f.write(line)
|
|
|
|
|
|
+ f.write(line_appid)
|
|
else:
|
|
else:
|
|
f.write(line)
|
|
f.write(line)
|
|
write_android_manifest(manifest_path, features, security)
|
|
write_android_manifest(manifest_path, features, security)
|
|
@@ -1291,12 +1291,12 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
|
|
else:
|
|
else:
|
|
f.write(indented_str(0, ""))
|
|
f.write(indented_str(0, ""))
|
|
elif "API.connect" in line:
|
|
elif "API.connect" in line:
|
|
- line.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
|
|
|
|
|
|
+ line_appid = line.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
|
|
if mode == "floating":
|
|
if mode == "floating":
|
|
- replaced = line.replace("0", "1")
|
|
|
|
|
|
+ replaced = line_appid.replace("0", "1")
|
|
f.write(replaced)
|
|
f.write(replaced)
|
|
else:
|
|
else:
|
|
- f.write(line)
|
|
|
|
|
|
+ f.write(line_appid)
|
|
else:
|
|
else:
|
|
f.write(line)
|
|
f.write(line)
|
|
write_android_manifest(manifest_path, features, security)
|
|
write_android_manifest(manifest_path, features, security)
|