Skip to content

1.7.9

Choose a tag to compare

@franciscoGERook franciscoGERook released this 24 Oct 18:59
· 16 commits to main since this release

What's Changed

Full Changelog: 1.7.8...1.7.9

Change log

Features

  • Summaries are returned in local with functions
public func getSleepSummary(date: Date) async throws -> [RookSleepSummary]
public func getPhysicalSummary(date: Date) async throws -> RookPhysicalSummary
public func getBodySummary(date: Date) async throws -> RookBodySummary

public func getSleepSummary(date: Date, completion: @escaping (Result<[RookSleepSummary], Error>) -> Void)
public func getPhysicalSummary(date: Date, completion: @escaping (Result<RookPhysicalSummary, Error>) -> Void)
public func getBodySummary(date: Date, completion: @escaping (Result<RookBodySummary, Error>) -> Void)
  • Activity evnets are returned in local with
public func getActivityEvents(date: Date, completion: @escaping (Result<[RookActivityEvent], Error>) -> Void)
public func getActivityEvents(date: Date) async throws -> [RookActivityEvent]
  • Nutriion events have been added

This events will sync automatically in background, if the permissions were granted
For manual sync use the example code:

let response = try await eventSyncManager.syncEvents(date: date, eventType: .nutrition)

Optimizations

  • analytics batch optimization
  • apple wrist temperature has been added to sleep summaries