|
@@ -188,43 +188,53 @@ def change_package(path_dest, package):
|
|
|
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)
|
|
|
+ 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:
|
|
|
- counter = counter - 1
|
|
|
- else:
|
|
|
- with open(gradle, "w") as f:
|
|
|
- counter = 0
|
|
|
+ f.write(line)
|
|
|
+ else:
|
|
|
+ counter = counter - 1
|
|
|
+ if package != "io.nexilis.digipos" and package != "io.nexilis.digisales":
|
|
|
+ colorValue = os.path.join(path_dest, "app/src/main/res/values/colors.xml")
|
|
|
+ with open(colorValue, "r") as c:
|
|
|
+ lines = c.readlines()
|
|
|
+ with open(colorValue, "w") as c:
|
|
|
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)
|
|
|
+ if "fordigisales" in line:
|
|
|
+ continue
|
|
|
else:
|
|
|
- counter = counter - 1
|
|
|
+ c.write(line)
|
|
|
+ # 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:
|
|
|
+ # pass
|
|
|
|
|
|
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")
|