From 2459b1b20ebf7962bbcf0e738415bc5ee05b3e55 Mon Sep 17 00:00:00 2001 From: YannickMaljaars Date: Tue, 18 Oct 2022 12:13:23 +0200 Subject: [PATCH 1/2] Added plugin support for new granular Android 13 storage permissions and alarm permission --- permission_handler/CHANGELOG.md | 4 ++++ .../example/android/app/src/main/AndroidManifest.xml | 6 ++++++ permission_handler/pubspec.yaml | 10 +++++----- permission_handler_android/pubspec.yaml | 2 +- permission_handler_apple/pubspec.yaml | 2 +- permission_handler_windows/pubspec.yaml | 2 +- 6 files changed, 18 insertions(+), 8 deletions(-) diff --git a/permission_handler/CHANGELOG.md b/permission_handler/CHANGELOG.md index 8ad5af88..f6a0505d 100644 --- a/permission_handler/CHANGELOG.md +++ b/permission_handler/CHANGELOG.md @@ -1,3 +1,7 @@ +## 10.2.0 + +* Added support for the new Android 13 permissions: SCHEDULE_EXACT_ALARM, READ_MEDIA_IMAGES, READ_MEDIA_VIDEO and READ_MEDIA_AUDIO + ## 10.1.0 * Added support for the new Android 13 permission: NEARBY_WIFI_DEVICES. diff --git a/permission_handler/example/android/app/src/main/AndroidManifest.xml b/permission_handler/example/android/app/src/main/AndroidManifest.xml index 577ff494..88f20bb6 100644 --- a/permission_handler/example/android/app/src/main/AndroidManifest.xml +++ b/permission_handler/example/android/app/src/main/AndroidManifest.xml @@ -16,6 +16,9 @@ + + + @@ -79,6 +82,9 @@ + + + Date: Wed, 19 Oct 2022 10:09:38 +0200 Subject: [PATCH 2/2] revert pubspec.yaml platform interface versions to 3.7.0 in platform packages --- permission_handler_android/pubspec.yaml | 2 +- permission_handler_apple/pubspec.yaml | 2 +- permission_handler_windows/pubspec.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/permission_handler_android/pubspec.yaml b/permission_handler_android/pubspec.yaml index b39ef05f..35c68edd 100644 --- a/permission_handler_android/pubspec.yaml +++ b/permission_handler_android/pubspec.yaml @@ -18,7 +18,7 @@ flutter: dependencies: flutter: sdk: flutter - permission_handler_platform_interface: ^3.9.0 + permission_handler_platform_interface: ^3.7.0 dev_dependencies: flutter_lints: ^1.0.4 diff --git a/permission_handler_apple/pubspec.yaml b/permission_handler_apple/pubspec.yaml index 526b2987..16f7d21e 100644 --- a/permission_handler_apple/pubspec.yaml +++ b/permission_handler_apple/pubspec.yaml @@ -17,7 +17,7 @@ flutter: dependencies: flutter: sdk: flutter - permission_handler_platform_interface: ^3.9.0 + permission_handler_platform_interface: ^3.7.0 dev_dependencies: flutter_lints: ^1.0.4 diff --git a/permission_handler_windows/pubspec.yaml b/permission_handler_windows/pubspec.yaml index 75276253..c89ed3a9 100644 --- a/permission_handler_windows/pubspec.yaml +++ b/permission_handler_windows/pubspec.yaml @@ -13,7 +13,7 @@ flutter: dependencies: flutter: sdk: flutter - permission_handler_platform_interface: ^3.9.0 + permission_handler_platform_interface: ^3.7.0 dev_dependencies: flutter_test: