-
Notifications
You must be signed in to change notification settings - Fork 161
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
Backport HealthKit fix to earlier version #22
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't run the code, but looks good!
In code review:
Will this be changed to Open-iAPS? |
Should be, yes. Those string changes were something I did in a very early version before Andreas‘ rewrite, where I had added more logging and the app was named iAPS back then 😂 |
I took the liberty of replacing iAPS with Open-iAPS in comments of HealthKitManager.swift :-) Anything else missing now? @AndreasStokholm, there is a positive review by Bastiaan above, with a minor comment about |
Proposed in conjunction with nightscout/trio-oref#14
Proposed in conjunction with nightscout/trio-oref#14
Remove `actualDate` as introduced in #22
I originally implemented this fix in a slightly newer version, so this is a backport. This meant that I had to make a few changes in NS and some other places to make the API compatible. The actual fix itself is what's in
HealthKitManager.swift
, everything else is to conform to that version of the HKM API wherever it's being called.More specifically, the HealthKitManager fix are the following parts:
syncID
->syncID.id
: https://github.com/nightscout/Open-iAPS/compare/apple-health-fix?expand=1#diff-ad150566aaf780d912eaea022c0e727588f1d24ce1c8ee38997162e5f19c040bR256.sink
it was no longer valid.