Commit a49e4abb by Maurits van Beusekom Committed by GitHub

Merge pull request #557 from Baseflow/issue/319_permission_handler_platform_interface

Issue/319 permission handler platform interface
parents 25b10ca8 47965467
## 3.4.0
*Added support request install packages permission.
## 3.3.0
* Added support for system alert window permission.
......
......@@ -133,6 +133,10 @@ class Permission {
///iOS: Nothing
static const systemAlertWindow = Permission._(23);
///Android: Allows an app to request installing packages.
///iOS: Nothing
static const requestInstallPackages = Permission._(24);
/// Returns a list of all possible [PermissionGroup] values.
static const List<Permission> values = <Permission>[
calendar,
......@@ -158,7 +162,8 @@ class Permission {
unknown,
bluetooth,
manageExternalStorage,
systemAlertWindow
systemAlertWindow,
requestInstallPackages
];
static const List<String> _names = <String>[
......@@ -185,7 +190,8 @@ class Permission {
'unknown',
'bluetooth',
'manageExternalStorage',
'systemAlertWindow'
'systemAlertWindow',
'requestInstallPackages'
];
@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.3.0
version: 3.4.0
dependencies:
flutter:
......
......@@ -6,7 +6,7 @@ void main() {
() {
final values = Permission.values;
expect(values.length, 24);
expect(values.length, 25);
});
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