|
@@ -452,25 +452,6 @@ def change_huawei_file(path_dest, huawei_file, package_id):
|
|
|
replaced = file_source.replace('isHMSEnabled = false', 'isHMSEnabled = true')
|
|
|
with open(main_code_path, "w") as f:
|
|
|
f.write(replaced)
|
|
|
- else:
|
|
|
- gradle = os.path.join(path_dest, "build.gradle")
|
|
|
- with open(gradle, "r") as f:
|
|
|
- lines = f.readlines()
|
|
|
- with open(gradle, "w") as f:
|
|
|
- for line in lines:
|
|
|
- if "//huawei" in line:
|
|
|
- continue
|
|
|
- else:
|
|
|
- f.write(line)
|
|
|
- gradle_app = os.path.join(path_dest, "app/build.gradle")
|
|
|
- with open(gradle_app, "r") as f:
|
|
|
- lines = f.readlines()
|
|
|
- with open(gradle_app, "w") as f:
|
|
|
- for line in lines:
|
|
|
- if "//huawei" in line:
|
|
|
- continue
|
|
|
- else:
|
|
|
- f.write(line)
|
|
|
|
|
|
def change_fms_file(path_dest, fms_enable, package_id):
|
|
|
if fms_enable == 1:
|