Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
huangzhicong
/
SmartCanteen
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e2a2723d
authored
Mar 16, 2020
by
pye52
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整合更新方案
parent
072f0164
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/build.gradle
+1
-1
app/src/main/java/com/bgycc/smartcanteen/action/UpdateAction.kt
+2
-2
No files found.
app/build.gradle
View file @
e2a2723d
...
...
@@ -10,7 +10,7 @@ android {
applicationId
"com.bgycc.smartcanteen"
minSdkVersion
21
targetSdkVersion
22
versionCode
1
2
versionCode
1
3
versionName
"1.3.3"
// test分支
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
...
...
app/src/main/java/com/bgycc/smartcanteen/action/UpdateAction.kt
View file @
e2a2723d
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment