Getting started: Environments and logging
Configure rook_sdk_apple_health behaviour and log outputs.
Environment
The RookEnvironment
enum allows to quickly configure the behaviour of rook_sdk_apple_health, e.g. the
api used to communicate with ROOK servers.
Available environments:
- sandbox ➞ Use this during your app development process.
- production ➞ Use this ONLY when your app is published to the PlayStore.
You can use the kDebugMode
property of you app to configure the environment:
const environment = kDebugMode ? RookEnvironment.sandbox : RookEnvironment.production;
Logging
If you want to see the logs generated by the RookSDK native SDK, before setConfiguration
call enableNativeLogs
.
You can use the kDebugMode
property of you app to configure logging:
void enableLogs() {
if (kDebugMode) {
AHRookConfigurationManager.enableNativeLogs();
}
}