Where should the Maps API key be stored to avoid committing it to GitHub?
- The layout file
- strings.xml in the public repository
- The app name
- local.properties (read through the Secrets Gradle Plugin)
Answer
D) local.properties (read through the Secrets Gradle Plugin)
local.properties is excluded from version control by default.
Computer Science MCQ · More Lab: Showing a Location on Google Maps MCQs · Practise