本项目修改至https://github.com/WVector/AppUpdate
- 实现android版本更新
- 自定义接口协议,可以不改变现有项目的协议就能使用
- 支持get,post请求
- 支持进度显示,对话框进度条,和通知栏进度条展示
- 支持后台下载
- 支持强制更新
- 支持简单主题色配置(可以自动从顶部图片提取主色)
- 支持自定义对话框(可以监听下载进度)
- 支持静默下载(可以设置wifi状态下)
- 支持android7.0、android8.0
点击下载 Demo.apk 或扫描下面的二维码安装
java方式引用
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.xiongms:lib_update:1.1.0'
}
1,java方式
new UpdateAppManager
.Builder()
//当前Activity
.setActivity(this)
//更新地址
.setUpdateUrl(mUpdateUrl)
//实现httpManager接口的对象
.setHttpManager(new UpdateAppHttpUtil())
.build()
.update();进度条使用的是代码家的「NumberProgressBar」
Copyright 2017 千匍
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.


