File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed
permission_handler_platform_interface Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change
1
+ ## 4.0.0
2
+
3
+ * ** BREAKING CHANGE** : Replaces ` Permission.calendarReadOnly ` with ` Permission.calendarWriteOnly ` .
4
+
1
5
## 3.12.0
2
6
3
7
* Adds ` Permission.calendarReadOnly ` and ` Permission.calendarFullAccess ` .
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class Permission {
29
29
///
30
30
/// Android: Calendar
31
31
/// iOS: Calendar (Events)
32
- @Deprecated ('Use [calendarReadOnly ] and [calendarFullAccess].' )
32
+ @Deprecated ('Use [calendarWriteOnly ] and [calendarFullAccess].' )
33
33
static const calendar = Permission ._(0 );
34
34
35
35
/// Permission for accessing the device's camera.
@@ -297,10 +297,10 @@ class Permission {
297
297
/// Android 13+ (API 33+)
298
298
static const sensorsAlways = Permission ._(35 );
299
299
300
- /// Permission for reading the device's calendar.
300
+ /// Permission for writing to the device's calendar.
301
301
///
302
302
/// On iOS 16 and lower, this permission is identical to [Permission.calendarFullAccess] .
303
- static const calendarReadOnly = Permission ._(36 );
303
+ static const calendarWriteOnly = Permission ._(36 );
304
304
305
305
/// Permission for reading from and writing to the device's calendar.
306
306
static const calendarFullAccess = Permission ._(37 );
@@ -344,7 +344,7 @@ class Permission {
344
344
audio,
345
345
scheduleExactAlarm,
346
346
sensorsAlways,
347
- calendarReadOnly ,
347
+ calendarWriteOnly ,
348
348
calendarFullAccess,
349
349
];
350
350
@@ -385,7 +385,7 @@ class Permission {
385
385
'audio' ,
386
386
'scheduleExactAlarm' ,
387
387
'sensorsAlways' ,
388
- 'calendarReadOnly ' ,
388
+ 'calendarWriteOnly ' ,
389
389
'calendarFullAccess' ,
390
390
];
391
391
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ description: A common platform interface for the permission_handler plugin.
3
3
homepage : https://github.com/baseflow/flutter-permission-handler/tree/master/permission_handler_platform_interface
4
4
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
5
5
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
6
- version : 3.12 .0
6
+ version : 4.0 .0
7
7
8
8
dependencies :
9
9
flutter :
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import 'method_channel_mock.dart';
6
6
List <Permission > get mockPermissions => List .of (< Permission > {
7
7
Permission .contacts,
8
8
Permission .camera,
9
- Permission .calendarReadOnly ,
9
+ Permission .calendarWriteOnly ,
10
10
});
11
11
12
12
Map <Permission , PermissionStatus > get mockPermissionMap => {};
You can’t perform that action at this time.
0 commit comments