Commit e2a2723d by pye52

整合更新方案

parent 072f0164
......@@ -10,7 +10,7 @@ android {
applicationId "com.bgycc.smartcanteen"
minSdkVersion 21
targetSdkVersion 22
versionCode 12
versionCode 13
versionName "1.3.3" // test分支
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
......
......@@ -3,7 +3,7 @@ package com.bgycc.smartcanteen.action
import com.bgycc.smartcanteen.BuildConfig
import com.bgycc.smartcanteen.event.SettingStateEvent
import com.bgycc.smartcanteen.helper.TimerHelper
import com.bgycc.smartcanteen.util.InstallManager
import com.bgycc.smartcanteen.util.DeviceProxy
import com.blankj.utilcode.util.*
import okhttp3.Call
import okhttp3.OkHttpClient
......@@ -89,7 +89,7 @@ class UpdateAction private constructor() : Action(ActionEnum.CONFIG_UPDATE.name)
EventBus.getDefault().post(SettingStateEvent(99, "不允许安装低版本"))
} else {
EventBus.getDefault().post(SettingStateEvent(99, "安装更新包"))
InstallManager.install(FILE_UPDATE_APK)
DeviceProxy.updateApp(FILE_UPDATE_APK)
}
finish()
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment