Skip to content

Commit 656721a

Browse files
authored
🔖 10.1.2 (#755)
1 parent 689f422 commit 656721a

4 files changed

Lines changed: 20 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,17 @@ that can be found in the LICENSE file. -->
99
1010
## Unreleased
1111

12+
*None.*
13+
14+
## 10.1.2
15+
1216
**Fixes**
1317

1418
- Fix `assetGridItemSemanticIndex` returning a 0-based index, causing screen readers to announce assets as "Image 0, Image 1, ..." instead of "Image 1, Image 2, ...".
1519

20+
**Improvements**
21+
- Add doc declaration about `android.permission.READ_MEDIA_VISUAL_USER_SELECTED`.
22+
1623
## 10.1.1
1724

1825
**Fixes**

README-ZH.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,15 @@ import 'package:wechat_assets_picker/wechat_assets_picker.dart';
188188

189189
#### 权限
190190

191-
| Name | 必需 | 已声明 | 最高 API 版本 | 其他 |
192-
|--------------------------|-----|-----|-----------|-------------|
193-
| `READ_EXTERNAL_STORAGE` ||| 32 | |
194-
| `WRITE_EXTERNAL_STORAGE` ||| 29 | |
195-
| `ACCESS_MEDIA_LOCATION` |* || N/A | 读取 EXIF 时必需 |
196-
| `READ_MEDIA_IMAGES` |* || N/A | 读取图片时必需 |
197-
| `READ_MEDIA_VIDEO` |* || N/A | 读取视频时必需 |
198-
| `READ_MEDIA_AUDIO` |* || N/A | 读取音频时必需 |
191+
| Name | 必需 | 已声明 | 最高 API 版本 | 其他 |
192+
|-----------------------------------|-----|-----|-----------|-------------|
193+
| `READ_EXTERNAL_STORAGE` ||| 32 | |
194+
| `WRITE_EXTERNAL_STORAGE` ||| 29 | |
195+
| `ACCESS_MEDIA_LOCATION` |* || N/A | 读取 EXIF 时必需 |
196+
| `READ_MEDIA_IMAGES` |* || N/A | 读取图片时必需 |
197+
| `READ_MEDIA_VIDEO` |* || N/A | 读取视频时必需 |
198+
| `READ_MEDIA_AUDIO` |* || N/A | 读取音频时必需 |
199+
| `READ_MEDIA_VISUAL_USER_SELECTED` |* || 34 | 读取用户选择的图片时必需 |
199200

200201
如果你的目标 SDK 版本大于 33,且你不需要获取图片、视频或者音频,
201202
你可以考虑只声明需要的权限,具体如下:
@@ -209,6 +210,8 @@ import 'package:wechat_assets_picker/wechat_assets_picker.dart';
209210
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
210211
<!--如果不需要获取音频,移除或者注释 READ_MEDIA_AUDIO-->
211212
<!--<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />-->
213+
<!--读取仅用户选中可读的资源时需要声明-->
214+
<uses-permission android:name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED" />
212215
</manifest>
213216
```
214217

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: wechat_assets_picker_demo
22
description: The demo project for the wechat_assets_picker package.
3-
version: 10.1.1+72
3+
version: 10.1.2+73
44
publish_to: none
55

66
environment:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: wechat_assets_picker
2-
version: 10.1.1
2+
version: 10.1.2
33
description: |
44
An image picker (also with videos and audio)
55
for Flutter projects based on WeChat's UI,

0 commit comments

Comments
 (0)