Skip to content

Commit d1d261e

Browse files
authored
Merge pull request #35 from googlemaps/arsalaza/fix-api-key
fix: update api key retrieval logic
2 parents 1543b1f + ec42d9c commit d1d261e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ import groovy.json.JsonSlurper
1616

1717

1818
def getApiKey(){
19-
return "AIzaSyAt_5eEMSOZva-YH1CUa_TOwX4pOHCsJOo"
19+
def Properties props = new Properties()
20+
props.load(new FileInputStream(new File('local.properties')))
21+
return props['MAPS_API_KEY']
2022
}
2123

2224
buildscript {

0 commit comments

Comments
 (0)