@@ -40,7 +40,7 @@ android {
minSdkVersion 15
targetSdkVersion 26
versionCode 1
- versionName "1.64"
+ versionName "1.65"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
buildConfigField "String", "BUILD_TIME", getDate()
@@ -114,6 +114,7 @@ public class SilentUpdateUtil {
DownloadUtils downloadUtils = new DownloadUtils(context);
if (downloadUtils.silentInstall(DownloadUtil.FILE_APK_PATH + "/" + DownloadUtil.FILE_APK_NAME)) {
ToastUtil.showToast("升级成功,即将重启!");
+ AutoRebootUtil.reboot(MyApplication.getAppContext());
}
// } else {
//