digidem / mapeo-mobile

Monitor and document the world around you
GNU General Public License v3.0
95 stars 16 forks source link

Update Mapbox token to be injected at build time #1147

Closed ErikSin closed 3 months ago

ErikSin commented 4 months ago

The mapbox access token is needed to download maps from mapbox. We currently hardcode an access token in our source code.

Problem

Mapbox charges based on downloads associated with access tokens. Due to our access token being available in our source code, anyone can copy and paste our access token, and Digital Democracy will be charged for those downloads.

In order to solve this, we can hide the access token and have it injected into the app in the dev and production builds.

Proposed solution

achou11 commented 3 months ago

Closed via #1150