From 006196ae42b4509ad205102bb9aeef2c8e6f1746 Mon Sep 17 00:00:00 2001 From: ZaneYork Date: Sun, 15 Mar 2020 16:34:19 +0800 Subject: [PATCH] Bump version to 1.2.3 --- app/build.gradle | 4 ++-- .../main/java/com/zane/smapiinstaller/utils/FileUtils.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index a946a5e..37265fa 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "com.zane.smapiinstaller" minSdkVersion 19 targetSdkVersion 28 - versionCode 10 - versionName "1.2.2" + versionCode 12 + versionName "1.2.3" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" multiDexEnabled true diff --git a/app/src/main/java/com/zane/smapiinstaller/utils/FileUtils.java b/app/src/main/java/com/zane/smapiinstaller/utils/FileUtils.java index 5884dd9..750c07b 100644 --- a/app/src/main/java/com/zane/smapiinstaller/utils/FileUtils.java +++ b/app/src/main/java/com/zane/smapiinstaller/utils/FileUtils.java @@ -108,7 +108,7 @@ public class FileUtils { writer.write(JSONUtil.toJson(content)); } finally { File distFile = new File(context.getFilesDir(), filename); - if(file.exists()) { + if(distFile.exists()) { org.zeroturnaround.zip.commons.FileUtils.forceDelete(distFile); } org.zeroturnaround.zip.commons.FileUtils.moveFile(file, distFile);