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, changeauthorizationUrltoauthorizationURL
- Change a typo in the response of
1.0.0
Customizable permissions on Android
- 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().hasHealthConnectPermissionsPartiallycheck 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
checkAvailabilitychange fromINSTALEDtoINSTALLED - Removed deprecated functions in
useRookSummariesshouldSyncSleepSummariesForshouldSyncSleepSummariesForshouldSyncPhysicalSummariesFor
- Removed deprecated functions in
useRookAndroidBackgroundStepshasStepsPermissionsrequestStepsPermissions
- Removed
doOnEndparameter inscheduledYesterdaySync
- Response of
0.7.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.
requestAndroidBackgroundPermissionsandrequestPermissionsreturn aRequestStatusPermissionsindicating the current status of the permissions two possible valuesREQUEST_SENTmeans that the views with permissions was presented andALREADY_GRANTEDmeans that the user already has granted the permissionsrevokeDataSourcefunction added intouseRookDataSourcesto revoke API source- Standardized errors for apple health in functions and background, to check the error into the catch check for
error.codeanderror.message - Broadcast channel to listen for notifications of the SDK
Deprecations
requestStepsPermissionsis deprecated and will be removedshouldSync{ROOK-Pillar}is deprecated and will be removed, you no longer need to use this function the sync functions make this checks
0.6.2
- Include some minor fixes and some optimizations
- Updates into the native modules
0.6.0
- BREAKING CHANGE: Remove the syncYesterdaySummaries from useRookSummaries and syncYesterdayEvents from useRookEvents
- Improve the performance of the enableBackgroundSync
- Support the redirectURL on data sources
0.5.0
- Include some minor fixes and some optimizations
- Include the enableBackgroundSync to automatically start the background services
0.4.1
Include some minor fixes and some optimizations
Health Connect:
- Added
RookEventManager.syncTodayStepsCountto sync the steps count of the current day, if successful it will return aSyncStatusWithData.Syncedobject with the steps information that was uploaded orSyncStatusWithData.RecordsNotFoundif the SDK could not find any steps records.
- Added
Android steps
RookStepsManager.getTodayStepsCountwas removed.- Added
RookStepsManager.syncTodayAndroidStepsCountto sync the steps count of the current day, if successful it will return the number of steps taken.
0.3.4
- BREAKING CHANGE: Remove the observe of steps of Android and iOS
- BREAKING CHANGE: Remove the observe of calories of iOS
0.3.3
- Add the ability to display local logs in the console for certain SDK operations.
0.3.2
- Minor fixes
0.3.1
- fixed body metrics events issues
0.3.0
- Add the ability to fetch the data sources and show a prebuilt view of the data sources
- Get the current steps and calories
0.2.6
- Fixed issue that prevents get the latest info of body metrics in events and summaries.
0.2.5
- Initial version