Commit 84977c82 by Maurits van Beusekom Committed by GitHub

Merge pull request #528 from Baseflow/system_alert_windows_platform_interface

Added support for SYSTEM_ALERT_WINDOW permission
parents 681bc4ca 773cd40f
## 3.3.0
* Added support for system alert window permission.
## 3.2.0
* Added support for manage external storage permission available on Android 10 and up.
......
......@@ -129,6 +129,10 @@ class Permission {
/// https://support.google.com/googleplay/android-developer/answer/9214102#zippy=
static const manageExternalStorage = Permission._(22);
///Android: Allows an app to create windows shown on top of all other apps
///iOS: Nothing
static const systemAlertWindow = Permission._(23);
/// Returns a list of all possible [PermissionGroup] values.
static const List<Permission> values = <Permission>[
calendar,
......@@ -153,7 +157,8 @@ class Permission {
activityRecognition,
unknown,
bluetooth,
manageExternalStorage
manageExternalStorage,
systemAlertWindow
];
static const List<String> _names = <String>[
......@@ -179,7 +184,8 @@ class Permission {
'activity_recognition',
'unknown',
'bluetooth',
'manageExternalStorage'
'manageExternalStorage',
'systemAlertWindow'
];
@override
......
......@@ -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: 3.2.0
version: 3.3.0
dependencies:
flutter:
......
......@@ -6,7 +6,7 @@ void main() {
() {
final values = Permission.values;
expect(values.length, 23);
expect(values.length, 24);
});
test('check if byValue returns corresponding PermissionGroup value', () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment