apksherlock
apksherlock

Reputation: 8371

Android store API Keys in secret

I have an Android app public on the Github. Even if it is public I have some values like API keys that I don't want other people to see.

I've seen people storing them on gradle.properties but I have that file visible also.

I've see that the gitignore command will not commit that file at all in case I update it.

Question: Which is the best way to achieve this for Android projects and keep the project public?

Upvotes: 0

Views: 145

Answers (1)

Eridanus
Eridanus

Reputation: 98

There is a file called local.properties at the project root level which could be used to hold the api keys. It shouldn't be committed to source control.

Upvotes: 1

Related Questions