I was wondering what the best way of storing an api key is in android studio. I would want to exclude this file from github using gitignore.
I have seen some people use the gradle.properties in the HOME directory but the api is specific to my application.
I also notice there is a gradle.properties in a new android studio project but this can contain other things that I may not want to exclude.
Anyone know the best way to do this ?
So the file would be available locally and my project would read it at runtime but I would "maybe" gitignore this file so I wouldn't commit it so I would not expose my api key.