From aee75641c2c847dfb873fde112257d6563ce840e Mon Sep 17 00:00:00 2001 From: Anuj Kumar <144224503+AnujLM@users.noreply.github.com> Date: Mon, 5 Aug 2024 12:40:33 +0530 Subject: [PATCH] Added limited access permission for android 14+ (#1354) * chore: Added limited access for Android 14+ * chore: version update --- permission_handler_platform_interface/CHANGELOG.md | 3 +++ .../lib/src/permission_status.dart | 2 +- permission_handler_platform_interface/lib/src/permissions.dart | 2 +- permission_handler_platform_interface/pubspec.yaml | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/permission_handler_platform_interface/CHANGELOG.md b/permission_handler_platform_interface/CHANGELOG.md index 092a80711..0f91c514f 100644 --- a/permission_handler_platform_interface/CHANGELOG.md +++ b/permission_handler_platform_interface/CHANGELOG.md @@ -1,3 +1,6 @@ +## 4.2.2 +* Adds limited access permission for Android 14+. + ## 4.2.1 * Resolves an error that occurred when calling the `shouldShowRequestPermissionRationale` on iOS. diff --git a/permission_handler_platform_interface/lib/src/permission_status.dart b/permission_handler_platform_interface/lib/src/permission_status.dart index 52db045db..59a6278ba 100644 --- a/permission_handler_platform_interface/lib/src/permission_status.dart +++ b/permission_handler_platform_interface/lib/src/permission_status.dart @@ -19,7 +19,7 @@ enum PermissionStatus { /// The user has authorized this application for limited access. So far this /// is only relevant for the Photo Library picker. /// - /// *Only supported on iOS (iOS14+).* + /// *Only supported on iOS (iOS14+) and Android (Android 14+)* limited, /// Permission to the requested feature is permanently denied, the permission diff --git a/permission_handler_platform_interface/lib/src/permissions.dart b/permission_handler_platform_interface/lib/src/permissions.dart index 8f6a6a63b..f9bd33567 100644 --- a/permission_handler_platform_interface/lib/src/permissions.dart +++ b/permission_handler_platform_interface/lib/src/permissions.dart @@ -411,7 +411,7 @@ class Permission { 'calendarWriteOnly', 'calendarFullAccess', 'assistant', - 'backgroundRefresh' + 'backgroundRefresh', ]; @override diff --git a/permission_handler_platform_interface/pubspec.yaml b/permission_handler_platform_interface/pubspec.yaml index 14957a1cd..d464b80ac 100644 --- a/permission_handler_platform_interface/pubspec.yaml +++ b/permission_handler_platform_interface/pubspec.yaml @@ -3,7 +3,7 @@ description: A common platform interface for the permission_handler plugin. homepage: https://github.com/baseflow/flutter-permission-handler/tree/master/permission_handler_platform_interface # NOTE: We strongly prefer non-breaking changes, even at the expense of a # less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes -version: 4.2.1 +version: 4.2.2 dependencies: flutter: