Commit 0b6b5290 by Jeroen Weener Committed by GitHub

Replace `calendarReadOnly` with `calendarWriteOnly` (#1193)

parent 627daa91
## 4.0.0
* **BREAKING CHANGE**: Replaces `Permission.calendarReadOnly` with `Permission.calendarWriteOnly`.
## 3.12.0
* Adds `Permission.calendarReadOnly` and `Permission.calendarFullAccess`.
......
......@@ -29,7 +29,7 @@ class Permission {
///
/// Android: Calendar
/// iOS: Calendar (Events)
@Deprecated('Use [calendarReadOnly] and [calendarFullAccess].')
@Deprecated('Use [calendarWriteOnly] and [calendarFullAccess].')
static const calendar = Permission._(0);
/// Permission for accessing the device's camera.
......@@ -297,10 +297,10 @@ class Permission {
/// Android 13+ (API 33+)
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].
static const calendarReadOnly = Permission._(36);
static const calendarWriteOnly = Permission._(36);
/// Permission for reading from and writing to the device's calendar.
static const calendarFullAccess = Permission._(37);
......@@ -344,7 +344,7 @@ class Permission {
audio,
scheduleExactAlarm,
sensorsAlways,
calendarReadOnly,
calendarWriteOnly,
calendarFullAccess,
];
......@@ -385,7 +385,7 @@ class Permission {
'audio',
'scheduleExactAlarm',
'sensorsAlways',
'calendarReadOnly',
'calendarWriteOnly',
'calendarFullAccess',
];
......
......@@ -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.12.0
version: 4.0.0
dependencies:
flutter:
......
......@@ -6,7 +6,7 @@ import 'method_channel_mock.dart';
List<Permission> get mockPermissions => List.of(<Permission>{
Permission.contacts,
Permission.camera,
Permission.calendarReadOnly,
Permission.calendarWriteOnly,
});
Map<Permission, PermissionStatus> get mockPermissionMap => {};
......
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