Where should the Maps API key be stored to avoid committing it to GitHub?

  1. The layout file
  2. strings.xml in the public repository
  3. The app name
  4. 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