Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
consistify YOUR_MAPBOX_ACCESS_TOKEN (#1417)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dom Brassey authored Jan 4, 2022
1 parent c327bae commit 8550db8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ _This demo app uses Mapbox vector tiles, which require a Mapbox account and a Ma
With the first Gradle invocation, Gradle will take the value of the `MAPBOX_ACCESS_TOKEN` environment variable and save it to `SharedCode/src/main/res/values/developer-config.xml`. If the environment variable wasn't set, you can create/edit the `developer-config.xml` file. Create an `access_token` String resource and paste your access token into it:

```xml
<string name="access_token">PASTE_YOUR_TOKEN_HERE</string>
<string name="access_token">YOUR_MAPBOX_ACCESS_TOKEN</string>
```

### Inside the app
Expand Down
2 changes: 1 addition & 1 deletion SharedCode/gradle-config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ task secretKeysSetup {
String mapboxAccessToken = "$System.env.MAPBOX_ACCESS_TOKEN"
if (mapboxAccessToken == "null") {
System.out.println("You should set the MAPBOX_ACCESS_TOKEN environment variable.")
mapboxAccessToken = "YOUR_MAPBOX_ACCESS_TOKEN_GOES_HERE"
mapboxAccessToken = "YOUR_MAPBOX_ACCESS_TOKEN"
}

String tokenFileContents = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" +
Expand Down

0 comments on commit 8550db8

Please sign in to comment.