Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Change MAPBOX_ACCESS_TOKEN to MapboxAccessToken #1604

Closed
kkaefer opened this issue May 20, 2015 · 11 comments
Closed

Change MAPBOX_ACCESS_TOKEN to MapboxAccessToken #1604

kkaefer opened this issue May 20, 2015 · 11 comments
Labels

Comments

@kkaefer
Copy link
Member

kkaefer commented May 20, 2015

We have standardized on MapboxAccessToken in all other repositories, so we should switch here as well.

@tmpsantos
Copy link
Contributor

oh, is that the env var? Can we keep MAPBOX_ACCESS_TOKEN at least for Linux (otherwise will be the first env var camelCase on my environment, Linux users won't feel at home).

@tmpsantos
Copy link
Contributor

keep == we could parse MapboxAccessToken fallbacking to MAPBOX_ACCESS_TOKEN on Linux.

@1ec5
Copy link
Contributor

1ec5 commented May 20, 2015

MAPBOX_ACCESS_TOKEN is more appropriate on OS X as well, owing to its Unix origins.

@1ec5
Copy link
Contributor

1ec5 commented May 20, 2015

Note that the environment variable is merely a convenience for running the demo app. With #1553, we'll also look for MGLMapboxAccessToken in a configuration file for iOS builds, per platform naming convention.

@jfirebaugh
Copy link
Contributor

We have standardized on MapboxAccessToken in all other repositories

This has actually stalled out; will reopen if it moves again.

@1ec5
Copy link
Contributor

1ec5 commented Apr 14, 2016

In #4696, I've proposed adding a prompt for the access token, which would be persisted across sessions. That way, you won't have to quit and rerun in the event that you forgot to set an access token.

Also, note that iosapp conventionally uses MBX as its class prefix. Cocoa convention is to use a class prefix in user defaults, environment variables, notification names, and so forth. Not that it would matter so much once we implement #4696.

@kkaefer
Copy link
Member Author

kkaefer commented Apr 15, 2016

MAPBOX_ACCESS_TOKEN is only used in our debug application and is not part of the SDK.

@1ec5
Copy link
Contributor

1ec5 commented Apr 15, 2016

Understood. #4696 is all about iosapp. The automation described in that issue would be useful for Bench GL, which is supposed to run without user intervention.

@kkaefer
Copy link
Member Author

kkaefer commented Apr 18, 2016

Bench GL is also supposed to run without any access to the internet whatsoever; it's currently loading all assets from the app bundle.

@1ec5
Copy link
Contributor

1ec5 commented Apr 18, 2016

I need to look into this again; the bundling of assets may've fallen out with #4641.

@1ec5
Copy link
Contributor

1ec5 commented Apr 18, 2016

ios-bench asset bundling fixed in #4740.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants