The Wayback Machine - https://web.archive.org/web/20201204171234/https://github.com/WVector/AppUpdate
Skip to content
master
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
apk
 
 
 
 
 
 
 
 
 
 
web
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Android 版本更新

目录

功能介�

  • 实现android版本更新
  • 对kotlin适é…?,调用更简å?•
  • 自定义接å?£å??议,å?¯ä»¥ä¸?改å?˜çŽ°æœ‰é¡¹ç›®çš„å??议就能使用
  • 支æŒ?get,post请求
  • 支æŒ?进度显示,对è¯?框进度æ?¡ï¼Œå’Œé€šçŸ¥æ ?进度æ?¡å±•示
  • 支æŒ?å?Žå?°ä¸‹è½½
  • 支æŒ?强制更新
  • 支æŒ?简å?•主题色é…?ç½®(å?¯ä»¥è‡ªåŠ¨ä»Žé¡¶éƒ¨å›¾ç‰‡æ??å?–主色)
  • 支æŒ?自定义对è¯?框(å?¯ä»¥ç›‘å?¬ä¸‹è½½è¿›åº¦ï¼‰
  • 支æŒ?é?™é»˜ä¸‹è½½ï¼ˆå?¯ä»¥è®¾ç½®wifi状æ€?下)
  • 支æŒ?android7.0

效果图与示例 apk

点击下载 Demo.apk 或扫æ??下é?¢çš„二维ç ?安装

Demo apk文件二维

Gradle ä¾?èµ–

java方�引用

dependencies {
    compile 'com.qianwen:update-app:3.5.2'
}

Download API License GitHub stars

kotlin方�引用

dependencies {
    compile 'com.qianwen:update-app-kotlin:1.2.3'
}

Download API License GitHub stars

简�使用

1,java方�

	new UpdateAppManager
                .Builder()
                //当�Activity
                .setActivity(this)
                //更新地�
                .setUpdateUrl(mUpdateUrl)
                //实现httpManager接�的对象
                .setHttpManager(new UpdateAppHttpUtil())
                .build()
                .update();

2,kotlin方�

	updateApp(mUpdateUrl, UpdateAppHttpUtil()).update()

详细说明

进度�使用的是代�家的「NumberProgressBar�

更新日志

kotlin版本是�赖java版本的,所以java版本的问题kotlin自然修�

v3.5.2

1,修�下载过程中,关闭对�框�能自动安装问题。

v3.5.1

1,修�bug

v3.5.0

1,优化强制更新 

v3.4.8

1,修�bug

v3.4.7

1,优化 APP 安装的问题

v3.4.6

1,优化 APP 安装的问题

v3.4.5

1,增加全局异常�获方法

                .handleException(new ExceptionHandler() 						{
                @Override
                public void onException(Exception e) {

                }
            })

v3.4.4

1,修�bug

bug

v3.4.3

1,修�bug

bug

v3.4.2

1,修�bug

bug

v3.4.1

1,给�件使用者更多的�置和开�一些钩�方便适���的业务需求
2,适�android8.0

感谢Jiiiiiin对项目的维护

v3.4.0

1,修�  

issues#59

v3.3.9

1,适�android8.0的通知和安装未知��的app

感谢typ0520对项目的维护

v3.3.8

1,增加存储空间��申请

V3.3.7

1,修改默认安装包下载路径为download/packageName

感谢bean-liu对项目的维护

V3.3.6

1,去掉对下载路径�缀的校验。

https://github.com/WVector/AppUpdate/issues/26

V3.3.5

1,修��级对�框布局中的问题。
2,修��默下载,关闭更新弹窗 �点击更新 一直显示的问题。

https://github.com/WVector/AppUpdate/issues/21

V3.3.4

1,修�对�框更新内容过多,�级按钮被挤压的问题。
2,去掉自动从图片æ??å?–颜色的功能, 通过.setThemeColor()设置按钮和精度æ?¡é¢œè‰²ï¼Œ
3,兼容compileSdkVersion <25

V3.3.3

1,修�下载路径是�定�路径�能下载的问题

V3.3.2

1,修�正在下载时,返回桌�报错的问题

https://github.com/WVector/AppUpdate/issues/14

V3.3.1

1,修�对�框外�以点击的问题

V3.3.0

1,�以设置�显示通知�进度�。
2,�以设置忽略版本。 
3,优化下载时页��的问题(由于下载进度回调调用频�,造�ui线程阻塞)。
4,�以�默下载,类似网易云音�,并且设置wifi状�下。

V3.2.9

1,新增自定义对�框。
2,适�kotlin,写法更简�。 

License

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.
You can’t perform that action at this time.