secrets-gradle-plugin icon indicating copy to clipboard operation
secrets-gradle-plugin copied to clipboard

Remove misleading double quotes in local.defaults.properties file

Open antonsurya opened this issue 2 years ago • 2 comments

The local.defaults.properties file contains the following:

MAPS_API_KEY=""

I copied that line and added the following line in my local.properties:

MAPS_API_KEY="AIzaalskro0jlskdj2kr5jlksbjlksdjflkse0p"

where the AIza... is a valid API key.

With this configuration, when you run your app you will get an authentication error, because the whole string including the double quotes is $MAPS_API_KEY.

Please consider to remove the double quotes in local.defaults.properties because it may mislead people.

antonsurya avatar Oct 28 '21 06:10 antonsurya

Hum, the comment above is actually for a sibling repo: https://github.com/googlemaps/android-samples/blob/main/ApiDemos/kotlin/local.defaults.properties, which uses this secrets Gradle plugin, but I think it would be good to address the issue also here. Let me know if you want me file an issue on the repo as well.

antonsurya avatar Oct 28 '21 06:10 antonsurya

Thanks for catching that! Will address this. Feel free to also send a PR

arriolac avatar Oct 28 '21 16:10 arriolac