File tree 4 files changed +7
-7
lines changed
updateapputils/src/main/java/util
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
- # UpdateAppUtils1.5
1
+ # UpdateAppUtils1.5.1
2
2
### 一行代码,快速实现app在线下载更新 A simple library for Android update app
3
3
### 适配Android6.0、7.0、8.0
4
4
![ ] ( update.gif )
9
9
compile引入
10
10
```
11
11
dependencies {
12
- compile 'com.teprinciple:updateapputils:1.5.0 '
12
+ compile 'com.teprinciple:updateapputils:1.5.1 '
13
13
}
14
14
```
15
15
@@ -82,9 +82,9 @@ UpdateAppUtils.from(this)
82
82
83
83
84
84
#### 更新日志
85
- 1.5.0 <br >
85
+ 1.5.1 <br >
86
86
库内部适配至Android8.0
87
- 1.4<br >
87
+ < br > 1.4<br >
88
88
使用[ filedownloader] ( https://github.com/lingochamp/FileDownloader ) 替换DownloadManager,避免部分手机DownLoadManager无效,同时解决了重复下载的问题,且提高了下载速度<br >
89
89
增加接口UpdateAppUtils.needFitAndroidN(false),避免不需要适配7.0,也要设置FileProvider<br >
90
90
<br >1.3.1<br >
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ dependencies {
41
41
apply plugin : ' com.github.dcendents.android-maven'
42
42
apply plugin : ' com.jfrog.bintray'
43
43
// This is the library version used when deploying the artifact
44
- version = " 1.5.0 "
44
+ version = " 1.5.1 "
45
45
46
46
def siteUrl = ' https://github.com/teprinciple/UpdateAppDemo' // 项目的主页
47
47
def gitUrl = ' https://github.com/teprinciple/UpdateAppDemo.git' // Git仓库的url
Original file line number Diff line number Diff line change 23
23
24
24
<provider
25
25
android : name =" android.support.v4.content.FileProvider"
26
- android : authorities =" teprinciple.updateapputils .fileprovider"
26
+ android : authorities =" ${applicationId} .fileprovider"
27
27
android : exported =" false"
28
28
android : grantUriPermissions =" true" >
29
29
<meta-data
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ private void toInstall(Context context) {
114
114
115
115
i .setFlags (Intent .FLAG_GRANT_READ_URI_PERMISSION );
116
116
Uri contentUri = FileProvider .getUriForFile (
117
- context , "teprinciple.updateapputils .fileprovider" , apkFile );
117
+ context , context . getPackageName () + " .fileprovider" , apkFile );
118
118
i .setDataAndType (contentUri , "application/vnd.android.package-archive" );
119
119
120
120
} else {
You can’t perform that action at this time.
0 commit comments