Skip to content

Commit

Permalink
自定义FileProvide,防止provider冲突
Browse files Browse the repository at this point in the history
  • Loading branch information
teprinciple committed Jul 10, 2019
1 parent bd70e2f commit 22b5604
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
15 changes: 4 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ repositories {
}
// Support
implementation 'com.teprinciple:updateapputils:2.0.0'
implementation 'com.teprinciple:updateapputils:2.0.1'
// AndroidX
implementation 'com.teprinciple:updateapputilsX:2.0.0'
implementation 'com.teprinciple:updateapputilsX:2.0.1'
```

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

### 更新日志
#### 2.0.0
* Kotlin重构
* 支持AndroidX
* 安装包签名文件md5校验
* 通知栏自定义图标
* 支持自定义UI
* 适配中英文
* 增加下载回调等api
* 修复部分bug
#### 2.0.1
* 自定义FileProvide,防止provider冲突
##### [更多历史版本](https://github.com/teprinciple/UpdateAppUtils/blob/master/readme/version.md)
2 changes: 1 addition & 1 deletion updateapputils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ publish {
userOrg = 'teprinciple'
groupId = 'com.teprinciple'
artifactId = 'updateapputils'
publishVersion = '2.0.0'
publishVersion = '2.0.1'
desc = 'A Simple library for Android update app'
website = 'https://github.com/teprinciple/UpdateAppUtils'
}
2 changes: 1 addition & 1 deletion updateapputils/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<service android:name="update.UpdateAppService"/>

<provider
android:name="android.support.v4.content.FileProvider"
android:name="update.UpdateFileProvider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
Expand Down
10 changes: 10 additions & 0 deletions updateapputils/src/main/java/update/UpdateFileProvider.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package update

import android.support.v4.content.FileProvider

/**
* desc: UpdateFileProvider
* time: 2019/7/10
* @author Teprinciple
*/
class UpdateFileProvider : FileProvider()

0 comments on commit 22b5604

Please sign in to comment.