Skip to content

Allow querying Bluetooth service status on iOS (main) - #1102

Merged
mvanbeusekom merged 3 commits into
Baseflow:mainfrom
JeroenWeener:773/app-facing
Jul 13, 2023
Merged

mvanbeusekom merged 3 commits into
Baseflow:mainfrom
JeroenWeener:773/app-facing

Conversation

@JeroenWeener

Copy link
Copy Markdown
Contributor

This PR updates the dependencies to allow iOS to query the service status of the Bluetooth module.
Additionally, it updates the displayed permission in the example app, as these were out of sync with the newest permissions.

This PR depends on #1099, #1100, #1101, and closes #773.

Pre-launch Checklist

  • I made sure the project builds.
  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is does not need version changes.
  • I updated CHANGELOG.md to add a description of the change.
  • I updated/added relevant documentation (doc comments with ///).
  • I rebased onto main.
  • I added new tests to check the change I am making, or this PR does not need tests.
  • I made sure all existing and new tests are passing.
  • I ran dart format . and committed any changes.
  • I ran flutter analyze and fixed any errors.

@mvanbeusekom mvanbeusekom left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but cannot be merged due to dependencies that have been updated. In general I think these updates are not necessary see also comment.

Comment thread permission_handler/pubspec.yaml Outdated
Comment on lines +25 to +28
permission_handler_android: ^10.3.0
permission_handler_apple: ^9.1.1
permission_handler_android: ^10.3.1
permission_handler_apple: ^9.1.4
permission_handler_windows: ^0.1.3
permission_handler_platform_interface: ^3.11.0
permission_handler_platform_interface: ^3.11.2

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This update is failing the build unnecessary. The updates are all patch updates which are already covered by the current version constraints.

Currently the build fails because these versions do not exists (other PRs that are still in review). Rolling back the dependency updates will allow this PR to be moved forward without having to rely on the other PRs to be merged and published.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mvanbeusekom I updated the PR, removing the dependency updates. This means that only the example app is updated. Without explicitly stating the new versions of the platform_interface and apple packages, we should not note the change to the Bluetooth permission. I therefore updated the CHANGELOG as well.

How would we communicate with users that use permission_handler directly, that Bluetooth has been updated?

@codecov

codecov Bot commented Jul 12, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage has no change and project coverage change: +6.52 🎉

Comparison is base (0be05e5) 93.47% compared to head (7974c23) 100.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #1102      +/-   ##
===========================================
+ Coverage   93.47%   100.00%   +6.52%     
===========================================
  Files           6         1       -5     
  Lines          92        17      -75     
===========================================
- Hits           86        17      -69     
+ Misses          6         0       -6     
Flag Coverage Δ
unittests 100.00% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
permission_handler/lib/permission_handler.dart 100.00% <ø> (ø)

... and 6 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@mvanbeusekom mvanbeusekom left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mvanbeusekom mvanbeusekom left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mvanbeusekom
mvanbeusekom merged commit 4c7bb44 into Baseflow:main Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Check Bluetooth is Enable

2 participants