Skip to content

Commit

Permalink
📝 Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Nov 8, 2024
1 parent bb178b0 commit db9c332
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ To know more about breaking changes, see the [Migration Guide][].

## Unreleased

*None.*
### Fixes

- Fix request permissions for images and videos on Android API 33+.

## 3.6.1

Expand Down
6 changes: 4 additions & 2 deletions README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -806,10 +806,12 @@ rootProject.allprojects {
就算你的 `targetSdkVersion``compileSdkVersion` 不是 `33`
你也需要在清单文件中添加以下权限配置:

> 注意:`READ_MEDIA_IMAGES``READ_MEDIA_VIDEO` 无论在请求图片还是请求视频时都需要。
```xml
<manifest>
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" /> <!-- 如果需要读取图片 -->
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" /> <!-- 如果需要读取视频 -->
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" /> <!-- 如果需要读取图片或视频 -->
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" /> <!-- 如果需要读取视频或图片 -->
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" /> <!-- 如果需要读取音频 -->
</manifest>
```
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -866,10 +866,12 @@ When running on Android 13 (API level 33),
the following permissions needs to be added to the manifest
even if your `targetSdkVersion` and `compileSdkVersion` is not `33`:

> Note: `READ_MEDIA_IMAGES` and `READ_MEDIA_VIDEO` are both required whether requesting images or videos.
```xml
<manifest>
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" /> <!-- If you want to read images-->
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" /> <!-- If you want to read videos-->
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" /> <!-- If you want to read images or videos-->
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" /> <!-- If you want to read videos or images-->
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" /> <!-- If you want to read audio-->
</manifest>
```
Expand Down

0 comments on commit db9c332

Please sign in to comment.