Skip to content

updates sensor permission to support permission with service. #1463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .github/workflows/permission_handler_platform_interface.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,4 @@ jobs:
# Run all unit-tests with code coverage
- name: Run unit tests
run: flutter test --coverage
working-directory: ${{env.source-directory}}

# Upload code coverage information
- uses: codecov/codecov-action@v1
with:
file: ${{env.source-directory}}/coverage/lcov.info # optional
name: permission_handler_platform_interface (Platform Interface Package) # optional
fail_ci_if_error: true
working-directory: ${{env.source-directory}}
5 changes: 5 additions & 0 deletions permission_handler_platform_interface/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 4.3.1

- Changes `Permission.sensor` into an instance of `PermissionWithService` instead of `Permission` in order to determine iOS native's `CMMotionActivityManager isActivityAvailable`.
- Removed Codecov from CI workflow

## 4.3.0

- Updates project dependencies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class Permission {
///
/// Android: Body Sensors
/// iOS: CoreMotion
static const sensors = Permission._(12);
static const sensors = PermissionWithService._(12);

/// Permission for sending and reading SMS messages (Android only).
static const sms = Permission._(13);
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.3.0
version: 4.3.1

environment:
sdk: ^3.5.0
Expand Down