Rook Api Sources
To have a better separation of data sources (and with the addition of the Samsung Health SDK), we decided to move the
HCRookDataSources and AHRookDataSources classes and all it's functions to RookApiSources available within the core
SDK: rook_sdk_core
This component is completely separated from Apple Health, Health Connect and Samsung Health SDKs so you'll need to initialize it with your credentials and provide the userID with each usage.
Migration process
The following classes have been removed:
DataSourceAuthorizedDataSources
The following methods have been removed:
HCRookDataSources.presentDataSourceView(String?)AHRookDataSources.presentDataSourceView(String?)
The following functions have been replaced by the new RookApiSources class.
| Deprecated (HCRookDataSources & AHRookDataSources) | Replacement (RookApiSources - Instance) |
|---|---|
revokeDataSource(String) | revokeDataSource(String, DataSourceType) |
revokeDataSource(DataSourceType) | revokeDataSource(String, DataSourceType) |
getAuthorizedDataSourcesV2() | getAuthorizedDataSourcesV2(String) |
getAuthorizedDataSources() | getAuthorizedDataSourcesV2(String) |
getDataSourceAuthorizer(String, String?) | getDataSourceAuthorizer(String, String, String) |
getAvailableDataSources(String?) | getAuthorizedDataSourcesV2(String) |