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

Limit precise of some Apple Health metrics #438

Merged
merged 4 commits into from
Jan 29, 2024
Merged

Conversation

theospears
Copy link
Collaborator

@theospears theospears commented Jan 29, 2024

BeeSwift just reports apple health metrics at the same precision as they are provided by HealthKit. This can lead to a silly amount of precision, e.g. 6+ decimal points for steps. Here we introduce a mechanism to limit precision, and use it for a few experimental metrics.

Testing:
Ran on device and checked metric values reported appropriately.

@theospears
Copy link
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @theospears and the rest of your teammates on Graphite Graphite

@theospears theospears changed the title Round steps to an integer Limit precise of some Apple Health metrics Jan 29, 2024
@theospears theospears marked this pull request as ready for review January 29, 2024 06:01
@theospears theospears enabled auto-merge (squash) January 29, 2024 06:01
@theospears theospears merged commit 293fce2 into master Jan 29, 2024
2 checks passed
@theospears theospears deleted the limited-precision branch January 29, 2024 06:16
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.

1 participant