Skip to content
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

Alpha6 updates and Mapping Fixes #20

Open
wants to merge 41 commits into
base: master
Choose a base branch
from

Conversation

rickcasson
Copy link
Contributor

@rickcasson rickcasson commented Nov 10, 2023

This updates to the Plugin to the latest version of the Health Connect API, fixes various mapping issues for the different Record types, adds granularity to the hasPermissions and requestPermissions methods, and adds the revokePermissions method .

Things to note:

  • I've been having issue running on device with Android 14 (SDK 34) installed, but it seems to be a common problem with other Health Connect plugins too. (edit: this is now fixed based on a PR that @eliasteeny made to the health plugin)
  • the previous usage of hasPermissions and requestPermissions will still work, but you can now pass lists of record types that need read, write, or both types of permissions (see updated example for details)
  • This fixes the issue flagged in Blood glucose assertion and unit fix #16
  • if you are using ProGuard, you will need to add to your proguard-rules file:
-keep public class androidx.health.** { *; }
-dontwarn androidx.health.**

@rickcasson rickcasson changed the title Alpha6 updates Alpha6 updates and Mapping Fixes Dec 21, 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.

2 participants