Skip to content

Commit 1eb5033

Browse files
committed
chire: doc
1 parent 76ea2c0 commit 1eb5033

File tree

3 files changed

+7410
-6492
lines changed

3 files changed

+7410
-6492
lines changed

demo-snippets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
"dependencies": {
66
"@nativescript-community/ui-mapbox": "file:../packages/ui-mapbox"
77
}
8-
}
8+
}

packages/ui-mapbox/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
## Table of Contents
3939

4040
* [Prerequisites](#prerequisites)
41+
* [Android](#android)
4142
* [Installation](#installation)
4243
* [Configuration](#configuration)
4344
* [Issues](#issues)
@@ -110,6 +111,31 @@
110111
You either need your own tile server such as the one provided by [openmaptiles.org](https://openmaptiles.org) or a Mapbox API access token (they have a 🆓 Starter plan!), so [sign up with Mapbox](https://www.mapbox.com/signup/).
111112
Once you've registered go to your Account > Apps > New token. The 'Default Secret Token' is what you'll need.
112113

114+
### Android
115+
116+
Mapbox now requires (version > 8.6.6) an api key to download the sdk
117+
118+
If you want to use newer version than the default 8.6.6 you need to add this to your `app.gradle`
119+
```gradle
120+
allprojects {
121+
repositories {
122+
maven {
123+
url 'https://api.mapbox.com/downloads/v2/releases/maven'
124+
authentication {
125+
basic(BasicAuthentication)
126+
}
127+
credentials {
128+
// Do not change the username below.
129+
// This should always be `mapbox` (not your username).
130+
username = 'mapbox'
131+
// Use the secret token you stored in gradle.properties as the password
132+
password = project.properties['MAPBOX_DOWNLOADS_TOKEN'] ?: ""
133+
}
134+
}
135+
}
136+
}
137+
```
138+
113139

114140
[](#installation)
115141

0 commit comments

Comments
 (0)