Commit 60dfb8dc by Jan-Derk

Added "REQUEST_INSTALL_PACKAGES" permission

parent 25b10ca8
## 3.4.0
*Added support request install packages permission.
## 3.3.0 ## 3.3.0
* Added support for system alert window permission. * Added support for system alert window permission.
......
...@@ -133,6 +133,11 @@ class Permission { ...@@ -133,6 +133,11 @@ class Permission {
///iOS: Nothing ///iOS: Nothing
static const systemAlertWindow = Permission._(23); 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. /// Returns a list of all possible [PermissionGroup] values.
static const List<Permission> values = <Permission>[ static const List<Permission> values = <Permission>[
calendar, calendar,
...@@ -158,7 +163,8 @@ class Permission { ...@@ -158,7 +163,8 @@ class Permission {
unknown, unknown,
bluetooth, bluetooth,
manageExternalStorage, manageExternalStorage,
systemAlertWindow systemAlertWindow,
requestInstallPackages
]; ];
static const List<String> _names = <String>[ static const List<String> _names = <String>[
...@@ -185,7 +191,8 @@ class Permission { ...@@ -185,7 +191,8 @@ class Permission {
'unknown', 'unknown',
'bluetooth', 'bluetooth',
'manageExternalStorage', 'manageExternalStorage',
'systemAlertWindow' 'systemAlertWindow',
'requestInstallPackages'
]; ];
@override @override
......
...@@ -3,7 +3,7 @@ description: A common platform interface for the permission_handler plugin. ...@@ -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 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 # 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 # less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
version: 3.3.0 version: 3.4.0
dependencies: dependencies:
flutter: flutter:
......
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