Skip to main content

CHANGELOG

Versioning definitions:

Given a version number VERSION.MAJOR.MINOR:

  • VERSION: Incompatible API changes
  • MAJOR: New functionality in an incompatible manner, Major bug fixes. Security fixes
  • MINOR: New functionality in a backward compatible manner, Minor bug fixes, Performance improvements.

Changelog

1.0.1

  • BREAKING CHANGES:
    • Change a typo in the response of getDataSources, change authorizationUrl to authorizationURL

1.0.0

  • Customizable permissions

    • Now the permissions that you remove from the AndroidManifest will affect the behavior of requesting/checking permissions functions, allowing you to discard permissions that you don't need.
    • useRookPermissions().checkHealthConnectPermissionsPartially check if at least one permission was granted.
    • The broadcast channel also notifies (ROOK_HEALTH_CONNECT_PERMISSIONS_PARTIALLY_GRANTED) if at least one permission was granted.
  • BREAKING CHANGES:

    • Response of checkAvailability change from INSTALED to INSTALLED
    • Removed deprecated functions in useRookSyncSummaries
      • shouldSyncSleepSummariesFor
      • shouldSyncSleepSummariesFor
      • shouldSyncPhysicalSummariesFor
    • Removed deprecated functions in useRookBackgroundSteps
      • hasStepsPermissions
      • requestStepsPermissions
    • Removed doOnEnd parameter in scheduledYesterdaySync

0.11.0

  • Optimizations

    • Add the broadcast channel were you can listen for notifications about the permissions status
    • Improved sleep summary extraction to prevent bad Samsung Health behavior.
    • requestAndroidBackgroundPermissions and requestPermissions return a RequestStatusPermissions indicating the current status of the permissions two possible values REQUEST_SENT means that the views with permissions was presented and ALREADY_GRANTED means that the user already has granted the permissions
    • revokeDataSource function added into useRookDataSources to revoke API source
  • Deprecations

    • requestStepsPermissions is deprecated and will be removed
    • shouldSync{ROOK-Pillar} is deprecated and will be removed, you no longer need to use this function the sync functions make this checks

0.10.1

  • Support the redirect url in data sources
  • Improve the service of enableBackgroundSync

0.10.0

  • Include the service of enableBackgroundSync with flag into the RookSyncGate that automatically start the background services

  • BREAKING CHANGE: Remove the syncYesterdaySummaries from useRookSummaries and syncYesterdayEvents from useRookEvents

  • Health Connect:

    • Added RookEventManager.syncTodayStepsCount to sync the steps count of the current day, if successful it will return a SyncStatusWithData.Synced object with the steps information that was uploaded or SyncStatusWithData.RecordsNotFound if the SDK could not find any steps records.
  • Android steps

    • RookStepsManager.getTodayStepsCount was removed.
    • Added RookStepsManager.syncTodayAndroidStepsCount to sync the steps count of the current day, if successful it will return the number of steps taken.

0.8.2

  • Update the native module to resolve minor issues

0.8.1

  • The functions checkPermissions = (permission?: PermissionType) and requestPermissions = (permission?: PermissionType) has change the parameters that means that now are optionals if you do not set any parameter by default will be "ALL", the parameters will be removed in the next major release.

0.8.0

  • Add the ability to fetch the data sources and show a prebuilt view of the data sources

0.7.0

  • Fix a bug on getting the today steps
  • add a function to get the available sources of ROOK

scheduleYesterdaySync is the equivalent of rookYesterdaySync but focused on hybrid environments like react native. If you are already using the rookYesterdaySync in the native side we strongly recommend you to migrate to this new feature, but beware that you MUST NOT use rookYesterdaySync and scheduleYesterdaySync at the same time as it can provoke unexpected behavior.

0.6.11

  • BREAKING CHANGE useRookSteps was renamed to useRookBackgroundSteps
  • BREAKING CHANGE useRookSteps.observeTodaySteps() was renamed to useRookBackgroundSteps.observeStepsOf(date: string)

0.6.10

  • Fixed crash on Android 13 or lower devices when using rookYesterdaySync without having health connect installed.

If you are using rookYesterdaySync you also MUST update the native rook-sdk dependency in your app module build.gradle to 0.8.1

Dependency updates

  • rook-sdk (Gradle): 0.8.00.8.1

0.6.9

  • Add the functions to request permissions for sync information in background
    • requestAndroidBackgroundPermissions
    • hasAndroidBackgroundPermissions

0.6.8

  • Update native dependencies of ROOK

0.6.7

  • Update native dependencies of ROOK

0.6.6

  • Update native dependencies of ROOK

0.6.5

  • Update native dependencies of ROOK