Skip to content

Commit 0b6b529

Browse files
authored
Replace calendarReadOnly with calendarWriteOnly (#1193)
1 parent 627daa9 commit 0b6b529

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

permission_handler_platform_interface/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 4.0.0
2+
3+
* **BREAKING CHANGE**: Replaces `Permission.calendarReadOnly` with `Permission.calendarWriteOnly`.
4+
15
## 3.12.0
26

37
* Adds `Permission.calendarReadOnly` and `Permission.calendarFullAccess`.

permission_handler_platform_interface/lib/src/permissions.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Permission {
2929
///
3030
/// Android: Calendar
3131
/// iOS: Calendar (Events)
32-
@Deprecated('Use [calendarReadOnly] and [calendarFullAccess].')
32+
@Deprecated('Use [calendarWriteOnly] and [calendarFullAccess].')
3333
static const calendar = Permission._(0);
3434

3535
/// Permission for accessing the device's camera.
@@ -297,10 +297,10 @@ class Permission {
297297
/// Android 13+ (API 33+)
298298
static const sensorsAlways = Permission._(35);
299299

300-
/// Permission for reading the device's calendar.
300+
/// Permission for writing to the device's calendar.
301301
///
302302
/// On iOS 16 and lower, this permission is identical to [Permission.calendarFullAccess].
303-
static const calendarReadOnly = Permission._(36);
303+
static const calendarWriteOnly = Permission._(36);
304304

305305
/// Permission for reading from and writing to the device's calendar.
306306
static const calendarFullAccess = Permission._(37);
@@ -344,7 +344,7 @@ class Permission {
344344
audio,
345345
scheduleExactAlarm,
346346
sensorsAlways,
347-
calendarReadOnly,
347+
calendarWriteOnly,
348348
calendarFullAccess,
349349
];
350350

@@ -385,7 +385,7 @@ class Permission {
385385
'audio',
386386
'scheduleExactAlarm',
387387
'sensorsAlways',
388-
'calendarReadOnly',
388+
'calendarWriteOnly',
389389
'calendarFullAccess',
390390
];
391391

permission_handler_platform_interface/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: A common platform interface for the permission_handler plugin.
33
homepage: https://github.com/baseflow/flutter-permission-handler/tree/master/permission_handler_platform_interface
44
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
55
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
6-
version: 3.12.0
6+
version: 4.0.0
77

88
dependencies:
99
flutter:

permission_handler_platform_interface/test/src/method_channel/method_channel_permission_handler_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'method_channel_mock.dart';
66
List<Permission> get mockPermissions => List.of(<Permission>{
77
Permission.contacts,
88
Permission.camera,
9-
Permission.calendarReadOnly,
9+
Permission.calendarWriteOnly,
1010
});
1111

1212
Map<Permission, PermissionStatus> get mockPermissionMap => {};

0 commit comments

Comments
 (0)