getCredentialPath method
Gets the path of the JSON credential file If the path is provided in the env, it will be read from the env, otherwise the default path will be provided.
The default path is: ./private_keys/play_api_key.json
Implementation
String getCredentialPath() {
String jcp = "";
if (credentialPath != null && credentialPath!.isNotEmpty) {
jcp = Platform.environment[credentialPath!] ?? "";
}
if (jcp.isEmpty) {
jcp = p.join("private_keys", "play_api_key.json");
}
return jcp;
}