0

Sometimes I forget to change over from my debug Google map key when I compile my app. Is there a way to have it change automatically so that I don't have to manually change it in the manifest everytime and possibly forget to change it for the release build again?

1 Answer 1

2

The best thing you can do it not to have to change it at all.

First of all, you can check in the API_KEY into your repository even if it is public. Nobody can use the key without having your debug or release keystore (and passwords).

Secondly, you can assign a single API key multiple SHA-1;package pairs in the Google APIs Console.

Sign up to request clarification or add additional context in comments.

1 Comment

It's the secondly answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.