Skip to content

Commit

Permalink
V1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfusheng committed Feb 22, 2018
1 parent a9da435 commit 372047a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions FirUpdater/src/main/java/com/sunfusheng/FirUpdater.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ private void downloadApk() {
apkPath = Environment.getExternalStorageDirectory() + File.separator + apkName;
}

File apkFile = new File(apkPath);
if (apkFile.exists()) {
FirUpdaterUtils.installApk(context, apkPath);
return;
}

firNotification = new FirNotification();
firNotification.createBuilder(context);
firNotification.setContentTitle("正在下载" + appInfo.appName);
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ gradle.ext.supportLibraryVersion = '27.0.2'

gradle.ext.minSdkVersion = 14
gradle.ext.targetSdkVersion = 27
gradle.ext.versionCode = 5
gradle.ext.versionName = '1.0.4'
gradle.ext.versionCode = 6
gradle.ext.versionName = '1.0.5'

0 comments on commit 372047a

Please sign in to comment.