Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
permission_handler
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyanzhi
permission_handler
Commits
1ce7e229
Unverified
Commit
1ce7e229
authored
Jun 29, 2023
by
Maurits van Beusekom
Committed by
GitHub
Jun 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds BODY_SENSORS_BACKGROUND support (#1073)
parent
5857bc81
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
8 deletions
+20
-8
permission_handler_platform_interface/CHANGELOG.md
+4
-0
permission_handler_platform_interface/lib/src/permissions.dart
+14
-6
permission_handler_platform_interface/pubspec.yaml
+1
-1
permission_handler_platform_interface/test/src/permissions_test.dart
+1
-1
No files found.
permission_handler_platform_interface/CHANGELOG.md
View file @
1ce7e229
## 3.11.0
*
Adds support for the new Android 13 permission: BODY_SENSORS_BACKGROUND.
## 3.10.0
## 3.10.0
*
Adds support for the "Provisional" permission status introduced with iOS 12+.
*
Adds support for the "Provisional" permission status introduced with iOS 12+.
...
...
permission_handler_platform_interface/lib/src/permissions.dart
View file @
1ce7e229
...
@@ -67,8 +67,8 @@ class Permission {
...
@@ -67,8 +67,8 @@ class Permission {
/// iOS: Nothing
/// iOS: Nothing
static
const
phone
=
PermissionWithService
.
_
(
8
);
static
const
phone
=
PermissionWithService
.
_
(
8
);
/// When running on Android T and above: Read image files from external storage
/// When running on Android T
IRAMISU
and above: Read image files from external storage
/// When running on Android < T: Nothing
/// When running on Android < T
IRAMISU
: Nothing
/// iOS: Photos
/// iOS: Photos
/// iOS 14+ read & write access level
/// iOS 14+ read & write access level
static
const
photos
=
Permission
.
_
(
9
);
static
const
photos
=
Permission
.
_
(
9
);
...
@@ -181,13 +181,13 @@ class Permission {
...
@@ -181,13 +181,13 @@ class Permission {
///iOS: Nothing
///iOS: Nothing
static
const
nearbyWifiDevices
=
Permission
.
_
(
31
);
static
const
nearbyWifiDevices
=
Permission
.
_
(
31
);
/// When running on Android T and above: Read video files from external storage
/// When running on Android T
IRAMISU
and above: Read video files from external storage
/// When running on Android < T: Nothing
/// When running on Android < T
IRAMISU
: Nothing
/// iOS: Nothing
/// iOS: Nothing
static
const
videos
=
Permission
.
_
(
32
);
static
const
videos
=
Permission
.
_
(
32
);
/// When running on Android T and above: Read audio files from external storage
/// When running on Android T
IRAMISU
and above: Read audio files from external storage
/// When running on Android < T: Nothing
/// When running on Android < T
IRAMISU
: Nothing
/// iOS: Nothing
/// iOS: Nothing
static
const
audio
=
Permission
.
_
(
33
);
static
const
audio
=
Permission
.
_
(
33
);
...
@@ -196,6 +196,12 @@ class Permission {
...
@@ -196,6 +196,12 @@ class Permission {
///iOS: Nothing
///iOS: Nothing
static
const
scheduleExactAlarm
=
Permission
.
_
(
34
);
static
const
scheduleExactAlarm
=
Permission
.
_
(
34
);
/// Android:
/// When running on Android TIRAMISU and above: Background Sensors Permission
/// When running on Android < TIRAMISU: Nothing
/// iOS: Nothing
static
const
sensorsAlways
=
Permission
.
_
(
35
);
/// 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
,
...
@@ -211,6 +217,7 @@ class Permission {
...
@@ -211,6 +217,7 @@ class Permission {
photosAddOnly
,
photosAddOnly
,
reminders
,
reminders
,
sensors
,
sensors
,
sensorsAlways
,
sms
,
sms
,
speech
,
speech
,
storage
,
storage
,
...
@@ -249,6 +256,7 @@ class Permission {
...
@@ -249,6 +256,7 @@ class Permission {
'photosAddOnly'
,
'photosAddOnly'
,
'reminders'
,
'reminders'
,
'sensors'
,
'sensors'
,
'sensorsAlways'
,
'sms'
,
'sms'
,
'speech'
,
'speech'
,
'storage'
,
'storage'
,
...
...
permission_handler_platform_interface/pubspec.yaml
View file @
1ce7e229
...
@@ -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.1
0
.0
version
:
3.1
1
.0
dependencies
:
dependencies
:
flutter
:
flutter
:
...
...
permission_handler_platform_interface/test/src/permissions_test.dart
View file @
1ce7e229
...
@@ -6,7 +6,7 @@ void main() {
...
@@ -6,7 +6,7 @@ void main() {
()
{
()
{
const
values
=
Permission
.
values
;
const
values
=
Permission
.
values
;
expect
(
values
.
length
,
3
5
);
expect
(
values
.
length
,
3
6
);
});
});
test
(
'check if byValue returns corresponding PermissionGroup value'
,
()
{
test
(
'check if byValue returns corresponding PermissionGroup value'
,
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment