Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions permission_handler_platform_interface/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.4.0

*Added support request install packages permission.

## 3.3.0

* Added support for system alert window permission.
Expand Down
10 changes: 8 additions & 2 deletions permission_handler_platform_interface/lib/src/permissions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -158,7 +162,8 @@ class Permission {
unknown,
bluetooth,
manageExternalStorage,
systemAlertWindow
systemAlertWindow,
requestInstallPackages
];

static const List<String> _names = <String>[
Expand All @@ -185,7 +190,8 @@ class Permission {
'unknown',
'bluetooth',
'manageExternalStorage',
'systemAlertWindow'
'systemAlertWindow',
'requestInstallPackages'
];

@override
Expand Down
2 changes: 1 addition & 1 deletion permission_handler_platform_interface/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', () {
Expand Down