Skip to content

Commit

Permalink
Reserves the assistant permission on no-op platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanbeusekom committed Jan 16, 2024
1 parent 515a4cd commit a3ab557
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ final class PermissionConstants {
static final int PERMISSION_GROUP_SENSORS_ALWAYS = 35;
static final int PERMISSION_GROUP_CALENDAR_WRITE_ONLY = 36;
static final int PERMISSION_GROUP_CALENDAR_FULL_ACCESS = 37;
static final int PERMISSION_GROUP_ASSISTANT = 38;

@Retention(RetentionPolicy.SOURCE)
@IntDef({
Expand Down Expand Up @@ -97,7 +98,8 @@ final class PermissionConstants {
PERMISSION_GROUP_AUDIO,
PERMISSION_GROUP_SCHEDULE_EXACT_ALARM,
PERMISSION_GROUP_CALENDAR_WRITE_ONLY,
PERMISSION_GROUP_CALENDAR_FULL_ACCESS
PERMISSION_GROUP_CALENDAR_FULL_ACCESS,
PERMISSION_GROUP_ASSISTANT
})
@interface PermissionGroup {
}
Expand Down
4 changes: 2 additions & 2 deletions permission_handler_apple/ios/Classes/PermissionHandlerEnums.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ typedef NS_ENUM(int, PermissionGroup) {
PermissionGroupAudio,
PermissionGroupScheduleExactAlarm,
PermissionGroupSensorsAlways,
PermissionGroupAssistant
PermissionGroupCalendarWriteOnly,
PermissionGroupCalendarFullAccess
PermissionGroupCalendarFullAccess,
PermissionGroupAssistant
};

typedef NS_ENUM(int, PermissionStatus) {
Expand Down
4 changes: 4 additions & 0 deletions permission_handler_platform_interface/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.1.0

* Adds the `Permission.assistant` which allows users to request permissions to access Siri on iOS and macOS platforms. This is a no-op on all other platforms.

## 4.0.2

* Improved the documentation around the `PermissionStatus`, `PermissionStatusGetters` and `FuturePermissionStatusGetters`.
Expand Down
2 changes: 1 addition & 1 deletion permission_handler_platform_interface/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: 4.0.2
version: 4.1.0

dependencies:
flutter:
Expand Down
3 changes: 2 additions & 1 deletion permission_handler_windows/windows/permission_constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ class PermissionConstants {
SCHEDULE_EXACT_ALARM = 34,
SENSORS_ALWAYS = 35,
CALENDAR_WRITE_ONLY = 36,
CALENDAR_FULL_ACCESS = 37
CALENDAR_FULL_ACCESS = 37,
ASSISTANT = 38
};

//PERMISSION_STATUS
Expand Down

0 comments on commit a3ab557

Please sign in to comment.