update buildscripts

This commit is contained in:
aliveoutside
2022-06-22 03:54:34 +03:00
parent 8248418fe2
commit 291273aef5
2 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -16,8 +16,8 @@ task exportDex {
doLast {
try {
File moduleDir = projectDir
ZipInputStream inputStream = new ZipInputStream(new FileInputStream(moduleDir.getAbsolutePath() + "/build/outputs/apk/debug/app-debug.apk"))
ZipFile file = new ZipFile(moduleDir.getAbsolutePath() + "/build/outputs/apk/debug/app-debug.apk");
ZipInputStream inputStream = new ZipInputStream(new FileInputStream(moduleDir.getAbsolutePath() + "/build/outputs/apk/release/app-release-unsigned.apk"))
ZipFile file = new ZipFile(moduleDir.getAbsolutePath() + "/build/outputs/apk/release/app-release-unsigned.apk");
ZipEntry entry
while ((entry = inputStream.nextEntry) != null) {
if (entry.getName().equals("classes.dex")) {
+1 -2
View File
@@ -10,7 +10,7 @@ cd ../
rm ../smali/assets/version.properties
rm ../lite/app/src/main/assets/version.properties
./gradlew versionFile
./gradlew assembleDebug
./gradlew assembleRelease
if [ $? -eq 0 ]; then
echo -e "${GREEN}Успех!${NC}\n"
else
@@ -42,7 +42,6 @@ if [ $? -eq 0 ]; then
echo -e "${GREEN}Успех!${NC}\n"
else
echo -e "${RED}Провал.${NC}\n"
exit 1
fi
echo -e "${BOLD}${UNDERLINE}Перенос version.properties в папку с исходным кодом..${NC}"