Skip to content

Commit 22b5604

Browse files
committed
自定义FileProvide,防止provider冲突
1 parent bd70e2f commit 22b5604

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

README.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ repositories {
2828
}
2929
3030
// Support
31-
implementation 'com.teprinciple:updateapputils:2.0.0'
31+
implementation 'com.teprinciple:updateapputils:2.0.1'
3232
3333
// AndroidX
34-
implementation 'com.teprinciple:updateapputilsX:2.0.0'
34+
implementation 'com.teprinciple:updateapputilsX:2.0.1'
3535
```
3636

3737
### 使用
@@ -178,13 +178,6 @@ UpdateAppUtils在应用启动时,通过对比当前应用和已下载apk的Ver
178178
<img src="https://github.com/teprinciple/UpdateAppUtils/blob/master/img/demo.png" width="220">
179179

180180
### 更新日志
181-
#### 2.0.0
182-
* Kotlin重构
183-
* 支持AndroidX
184-
* 安装包签名文件md5校验
185-
* 通知栏自定义图标
186-
* 支持自定义UI
187-
* 适配中英文
188-
* 增加下载回调等api
189-
* 修复部分bug
181+
#### 2.0.1
182+
* 自定义FileProvide,防止provider冲突
190183
##### [更多历史版本](https://github.com/teprinciple/UpdateAppUtils/blob/master/readme/version.md)

updateapputils/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ publish {
4444
userOrg = 'teprinciple'
4545
groupId = 'com.teprinciple'
4646
artifactId = 'updateapputils'
47-
publishVersion = '2.0.0'
47+
publishVersion = '2.0.1'
4848
desc = 'A Simple library for Android update app'
4949
website = 'https://github.com/teprinciple/UpdateAppUtils'
5050
}

updateapputils/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<service android:name="update.UpdateAppService"/>
2828

2929
<provider
30-
android:name="android.support.v4.content.FileProvider"
30+
android:name="update.UpdateFileProvider"
3131
android:authorities="${applicationId}.fileprovider"
3232
android:exported="false"
3333
android:grantUriPermissions="true">
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package update
2+
3+
import android.support.v4.content.FileProvider
4+
5+
/**
6+
* desc: UpdateFileProvider
7+
* time: 2019/7/10
8+
* @author Teprinciple
9+
*/
10+
class UpdateFileProvider : FileProvider()

0 commit comments

Comments
 (0)