|
@@ -184,6 +184,47 @@ def change_package(path_dest, package):
|
|
|
with open(j, "w") as f:
|
|
|
f.write(replaced)
|
|
|
|
|
|
+ gradle = os.path.join(path_dest, "app/build.gradle")
|
|
|
+ with open(gradle, "r") as f:
|
|
|
+ lines = f.readlines()
|
|
|
+ # file_source = f.read()
|
|
|
+ if package == "io.nexilis.digipos" or package == "io.nexilis.digisales":
|
|
|
+ with open(gradle, "w") as f:
|
|
|
+ counter = 0
|
|
|
+ for line in lines:
|
|
|
+ if counter == 0:
|
|
|
+ if "forallapps" in line:
|
|
|
+ counter = 3
|
|
|
+ continue
|
|
|
+ if "nexilis-libs" in line:
|
|
|
+ continue
|
|
|
+ if "temp-nexilis-client" in line:
|
|
|
+ continue
|
|
|
+ if "AP6ZuWCxBVTzLGiUjfacryBiwPQ" in line:
|
|
|
+ continue
|
|
|
+ else:
|
|
|
+ f.write(line)
|
|
|
+ else:
|
|
|
+ counter = counter - 1
|
|
|
+ else:
|
|
|
+ with open(gradle, "w") as f:
|
|
|
+ counter = 0
|
|
|
+ for line in lines:
|
|
|
+ if counter == 0:
|
|
|
+ if "fordigisales" in line:
|
|
|
+ counter = 3
|
|
|
+ continue
|
|
|
+ if "cx-button-libs" in line:
|
|
|
+ continue
|
|
|
+ if "cx-tsel-client" in line:
|
|
|
+ continue
|
|
|
+ if "AP5NjpoELAt7gHYMtnsrm9hxdGk" in line:
|
|
|
+ continue
|
|
|
+ else:
|
|
|
+ f.write(line)
|
|
|
+ else:
|
|
|
+ counter = counter - 1
|
|
|
+
|
|
|
if package == "com.nexilis.persija" or package == "io.newuniverse.GoToMalls" or package == "io.qmera.mylab":
|
|
|
string_res = os.path.join(path_dest, "app/src/main/res/values/strings.xml")
|
|
|
string_en_res = os.path.join(path_dest, "app/src/main/res/values-en/strings.xml")
|