Skip to content

Commit

Permalink
Merge pull request #37 from scolsen/master
Browse files Browse the repository at this point in the history
Make structural updates to the API keys section of the README.
  • Loading branch information
gino-m committed Feb 25, 2019
2 parents cb3ff06 + 3f3b692 commit c0f745b
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions README.md
Expand Up @@ -95,9 +95,13 @@ repository. Reference the [issue](https://github.com/google/ground-android/issue

### Add Google Maps API Key(s)

Create google_maps_api.xml files in gnd/src/debug/res/values and
gnd/src/release/res/values, replacing API_KEY with debug and release Google Maps
API keys:
If you do not have them, generate *release* and *debug* Google Maps API keys by
following the instructions at:

https://developers.google.com/maps/documentation/android-api/signup.

In `gnd/src/debug/res/values` and `gnd/src/release/res/values` create
`google_maps_api.xml` with the following contents:

``` xml
<resources>
Expand All @@ -106,16 +110,15 @@ API keys:
</resources>
```

You can generate new keys at:

https://developers.google.com/maps/documentation/android-api/signup.
In `gnd/src/debug/res/values` replace `API_KEY` with your Google Maps debug API key. In `gnd/src/release/res/values` replace
`API_KEY` with your Google Maps release API key.

Be sure the SHA-1 certificate fingerprint described in the API key generation instructions is
registered with package name ```com.google.android.gnd``` in:
Verify the SHA-1 certificate fingerprint described in the API key generation instructions is
registered with package name `com.google.android.gnd`. To check, visit

https://console.cloud.google.com/apis/credentials

You can find the SHA-1 of the debug key generated by Android Studio with:
To view the SHA-1 of the debug key generated by Android Studio run:

```
$ keytool -list -v -keystore "$HOME/.android/debug.keystore" \
Expand Down

0 comments on commit c0f745b

Please sign in to comment.