Commit 14a22a03 by Yannick Maljaars Committed by GitHub

Added platform interface support for Android 13: NEARBY_WIFI_DEVICES (#927)

* Added platform interface support for Android 13 permission: NEARBY_WIFI_DEVICES

* Test 1 in permission_test.dart updated for new values.length
parent 9ecea267
## 3.8.0
* Added support for the new Android 13 permission: NEARBY_WIFI_DEVICES.
## 3.7.1
* Updated the documentation on permissions in `permission_status.dart`
......
......@@ -176,6 +176,10 @@ class Permission {
///iOS: Nothing
static const bluetoothConnect = Permission._(30);
///Android: Allows the user to connect to nearby devices via Wi-Fi
///iOS: Nothing
static const nearbyWifiDevices = Permission._(31);
/// Returns a list of all possible [PermissionGroup] values.
static const List<Permission> values = <Permission>[
calendar,
......@@ -209,6 +213,7 @@ class Permission {
bluetoothScan,
bluetoothAdvertise,
bluetoothConnect,
nearbyWifiDevices
];
static const List<String> _names = <String>[
......@@ -243,6 +248,7 @@ class Permission {
'bluetoothScan',
'bluetoothAdvertise',
'bluetoothConnect',
'nearbyWifiDevices'
];
@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.7.1
version: 3.8.0
dependencies:
flutter:
......
......@@ -6,7 +6,7 @@ void main() {
() {
const values = Permission.values;
expect(values.length, 31);
expect(values.length, 32);
});
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