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

Open source Arc App's HealthKit hooks #24

Open
sobri909 opened this issue Jun 29, 2018 · 0 comments
Open

Open source Arc App's HealthKit hooks #24

sobri909 opened this issue Jun 29, 2018 · 0 comments
Assignees

Comments

@sobri909
Copy link
Owner

sobri909 commented Jun 29, 2018

Arc App has various extensions in its TimelineItem subclasses for fetching data from HealthKit. There's no reason why these can't be moved to LocoKit.

They should be wrapped in HealthKit module availability tests. But otherwise they should mostly be easily moved upstream from Arc App's ArcPath and ArcVisit subclasses and into the main Path and Visit classes. (Or more likely directly into the base TimelineItem class, given that they currently live in an ArcTimelineItem protocol).

Would probably also need to move over Arc App's HealthKit wrapper class, for simplified data fetching.

HKQuantityTypes

  • stepCount
  • activeEnergyBurned
  • heartRate (average value for the timeline item, and max value for the timeline item)

HKObjectTypes

  • sleepAnalysis
  • workoutType

It should also be easily extensible to support fetching of more HK types in custom subclasses, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant