Skip to content

Commit b78a2cc

Browse files
committed
updates sensor permission to support permission with service.
1 parent 753824b commit b78a2cc

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
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.3.1
2+
3+
- Changes `Permission.sensor` into an instance of `PermissionWithService` instead of `Permission` in order to determine iOS native's `CMMotionActivityManager isActivityAvailable`.
4+
15
## 4.3.0
26

37
- Updates project dependencies.

permission_handler_platform_interface/lib/src/permissions.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class Permission {
132132
///
133133
/// Android: Body Sensors
134134
/// iOS: CoreMotion
135-
static const sensors = Permission._(12);
135+
static const sensors = PermissionWithService._(12);
136136

137137
/// Permission for sending and reading SMS messages (Android only).
138138
static const sms = Permission._(13);

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: 4.3.0
6+
version: 4.3.1
77

88
environment:
99
sdk: ^3.5.0

0 commit comments

Comments
 (0)