File tree Expand file tree Collapse file tree
FirUpdater/src/main/java/com/sunfusheng Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,6 +88,12 @@ private void downloadApk() {
8888 apkPath = Environment .getExternalStorageDirectory () + File .separator + apkName ;
8989 }
9090
91+ File apkFile = new File (apkPath );
92+ if (apkFile .exists ()) {
93+ FirUpdaterUtils .installApk (context , apkPath );
94+ return ;
95+ }
96+
9197 firNotification = new FirNotification ();
9298 firNotification .createBuilder (context );
9399 firNotification .setContentTitle ("正在下载" + appInfo .appName );
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ gradle.ext.supportLibraryVersion = '27.0.2'
66
77gradle. ext. minSdkVersion = 14
88gradle. ext. targetSdkVersion = 27
9- gradle. ext. versionCode = 5
10- gradle. ext. versionName = ' 1.0.4 '
9+ gradle. ext. versionCode = 6
10+ gradle. ext. versionName = ' 1.0.5 '
You can’t perform that action at this time.
0 commit comments