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
0b6b5290
Unverified
Commit
0b6b5290
authored
Oct 17, 2023
by
Jeroen Weener
Committed by
GitHub
Oct 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace `calendarReadOnly` with `calendarWriteOnly` (#1193)
parent
627daa91
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
+11
-7
permission_handler_platform_interface/CHANGELOG.md
+4
-0
permission_handler_platform_interface/lib/src/permissions.dart
+5
-5
permission_handler_platform_interface/pubspec.yaml
+1
-1
permission_handler_platform_interface/test/src/method_channel/method_channel_permission_handler_test.dart
+1
-1
No files found.
permission_handler_platform_interface/CHANGELOG.md
View file @
0b6b5290
## 4.0.0
*
**BREAKING CHANGE**
: Replaces
`Permission.calendarReadOnly`
with
`Permission.calendarWriteOnly`
.
## 3.12.0
## 3.12.0
*
Adds
`Permission.calendarReadOnly`
and
`Permission.calendarFullAccess`
.
*
Adds
`Permission.calendarReadOnly`
and
`Permission.calendarFullAccess`
.
...
...
permission_handler_platform_interface/lib/src/permissions.dart
View file @
0b6b5290
...
@@ -29,7 +29,7 @@ class Permission {
...
@@ -29,7 +29,7 @@ class Permission {
///
///
/// Android: Calendar
/// Android: Calendar
/// iOS: Calendar (Events)
/// iOS: Calendar (Events)
@Deprecated
(
'Use [calendar
Read
Only] and [calendarFullAccess].'
)
@Deprecated
(
'Use [calendar
Write
Only] and [calendarFullAccess].'
)
static
const
calendar
=
Permission
.
_
(
0
);
static
const
calendar
=
Permission
.
_
(
0
);
/// Permission for accessing the device's camera.
/// Permission for accessing the device's camera.
...
@@ -297,10 +297,10 @@ class Permission {
...
@@ -297,10 +297,10 @@ class Permission {
/// Android 13+ (API 33+)
/// Android 13+ (API 33+)
static
const
sensorsAlways
=
Permission
.
_
(
35
);
static
const
sensorsAlways
=
Permission
.
_
(
35
);
/// Permission for
reading
the device's calendar.
/// Permission for
writing to
the device's calendar.
///
///
/// On iOS 16 and lower, this permission is identical to [Permission.calendarFullAccess].
/// On iOS 16 and lower, this permission is identical to [Permission.calendarFullAccess].
static
const
calendar
Read
Only
=
Permission
.
_
(
36
);
static
const
calendar
Write
Only
=
Permission
.
_
(
36
);
/// Permission for reading from and writing to the device's calendar.
/// Permission for reading from and writing to the device's calendar.
static
const
calendarFullAccess
=
Permission
.
_
(
37
);
static
const
calendarFullAccess
=
Permission
.
_
(
37
);
...
@@ -344,7 +344,7 @@ class Permission {
...
@@ -344,7 +344,7 @@ class Permission {
audio
,
audio
,
scheduleExactAlarm
,
scheduleExactAlarm
,
sensorsAlways
,
sensorsAlways
,
calendar
Read
Only
,
calendar
Write
Only
,
calendarFullAccess
,
calendarFullAccess
,
];
];
...
@@ -385,7 +385,7 @@ class Permission {
...
@@ -385,7 +385,7 @@ class Permission {
'audio'
,
'audio'
,
'scheduleExactAlarm'
,
'scheduleExactAlarm'
,
'sensorsAlways'
,
'sensorsAlways'
,
'calendar
Read
Only'
,
'calendar
Write
Only'
,
'calendarFullAccess'
,
'calendarFullAccess'
,
];
];
...
...
permission_handler_platform_interface/pubspec.yaml
View file @
0b6b5290
...
@@ -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.12
.0
version
:
4.0
.0
dependencies
:
dependencies
:
flutter
:
flutter
:
...
...
permission_handler_platform_interface/test/src/method_channel/method_channel_permission_handler_test.dart
View file @
0b6b5290
...
@@ -6,7 +6,7 @@ import 'method_channel_mock.dart';
...
@@ -6,7 +6,7 @@ import 'method_channel_mock.dart';
List
<
Permission
>
get
mockPermissions
=>
List
.
of
(<
Permission
>{
List
<
Permission
>
get
mockPermissions
=>
List
.
of
(<
Permission
>{
Permission
.
contacts
,
Permission
.
contacts
,
Permission
.
camera
,
Permission
.
camera
,
Permission
.
calendar
Read
Only
,
Permission
.
calendar
Write
Only
,
});
});
Map
<
Permission
,
PermissionStatus
>
get
mockPermissionMap
=>
{};
Map
<
Permission
,
PermissionStatus
>
get
mockPermissionMap
=>
{};
...
...
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