Skip to content

Commit 52bbcf4

Browse files
authored
🔖 3.6.0 (#133)
1 parent 6e01656 commit 52bbcf4

File tree

8 files changed

+50
-12
lines changed

8 files changed

+50
-12
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ that can be found in the LICENSE file. -->
44

55
# Changelog
66

7+
## 3.6.0
8+
9+
### New features
10+
11+
- Upgrade `camera` to `0.10.x`. (#133)
12+
- Upgrade `photo_maanger` for Android 13. (#133)
13+
714
## 3.5.0+1
815

916
### Fixes

README-ZH.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,21 @@ Flutter SDK:`>=2.0.0` 。
6060
- [wechat_assets_picker#准备工作](https://github.com/fluttercandies/flutter_wechat_assets_picker/blob/master/README-ZH.md#preparing-for-use-)
6161
- [camera#installation](https://pub.flutter-io.cn/packages/camera#installation)
6262

63+
#### Android 13 (API 33) 权限配置
64+
65+
如果你不需要拍照或录像,你可以考虑将对应权限移除:
66+
67+
```xml
68+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
69+
xmlns:tools="http://schemas.android.com/tools"
70+
package="com.your.app">
71+
<!-- 如果不需要拍照,移除 READ_MEDIA_IMAGES -->
72+
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" tools:node="remove" />
73+
<!-- 如果不需要拍照,移除 READ_MEDIA_VIDEO -->
74+
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" tools:node="remove" />
75+
</manifest>
76+
```
77+
6378
## 使用方法 📖
6479

6580
### 简单的使用方法

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,22 @@ Flutter SDK: `>=2.0.0` .
6262
- [wechat_assets_picker#preparing-for-use](https://github.com/fluttercandies/flutter_wechat_assets_picker#preparing-for-use-)
6363
- [camera#installation](https://pub.dev/packages/camera#installation)
6464

65+
#### Android 13 (API 33) permissions
66+
67+
If you don't need to take photos or videos,
68+
consider removing relevant permission in your apps, more specifically:
69+
70+
```xml
71+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
72+
xmlns:tools="http://schemas.android.com/tools"
73+
package="com.your.app">
74+
<!-- Remove READ_MEDIA_IMAGES if you don't need to take photos. -->
75+
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" tools:node="remove" />
76+
<!-- Remove READ_MEDIA_VIDEO if you don't need to take videos. -->
77+
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" tools:node="remove" />
78+
</manifest>
79+
```
80+
6581
## Usage 📖
6682

6783
### Simple usage

example/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ apply plugin: 'kotlin-kapt'
2727
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2828

2929
android {
30-
compileSdkVersion flutter.compileSdkVersion
30+
compileSdkVersion 33
3131

3232
sourceSets {
3333
main.java.srcDirs += 'src/main/kotlin'
@@ -40,7 +40,7 @@ android {
4040
defaultConfig {
4141
applicationId "com.fluttercandies.wechatCameraPickerExample"
4242
minSdkVersion 21
43-
targetSdkVersion flutter.targetSdkVersion
43+
targetSdkVersion 33
4444
versionCode flutterVersionCode.toInteger()
4545
versionName flutterVersionName
4646
}

example/android/app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
<uses-permission android:name="android.permission.FLASHLIGHT" />
66
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="29" />
77

8+
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
9+
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
10+
811
<uses-feature
912
android:name="android.hardware.camera"
1013
android:required="true"/>

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: wechat_camera_picker_demo
22
description: A new Flutter project.
3-
version: 3.5.0+15
3+
version: 3.6.0+16
44
publish_to: none
55

66
environment:

lib/src/states/camera_picker_viewer_state.dart

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,14 +205,11 @@ class CameraPickerViewerState extends State<CameraPickerViewer> {
205205
iconSize: 18,
206206
icon: Container(
207207
padding: const EdgeInsets.all(5),
208-
decoration: BoxDecoration(
209-
color: Theme.of(context).iconTheme.color,
208+
decoration: const BoxDecoration(
209+
color: Colors.white,
210210
shape: BoxShape.circle,
211211
),
212-
child: Icon(
213-
Icons.keyboard_return_rounded,
214-
color: Theme.of(context).canvasColor,
215-
),
212+
child: const Icon(Icons.keyboard_return_rounded, color: Colors.black,),
216213
),
217214
),
218215
),

pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: wechat_camera_picker
22
description: A camera picker which is an extension to wechat_assets_picker, but can be run separately.
3-
version: 3.5.0+1
3+
version: 3.6.0
44
homepage: https://github.com/fluttercandies/flutter_wechat_camera_picker
55

66
environment:
@@ -11,8 +11,8 @@ dependencies:
1111
flutter:
1212
sdk: flutter
1313

14-
camera: ^0.9.6
14+
camera: ^0.10.0
1515
camera_platform_interface: ^2.1.5
1616
path: ^1.8.0
17-
photo_manager: ^2.2.0
17+
photo_manager: ^2.3.0
1818
video_player: ^2.3.2

0 commit comments

Comments
 (0)