This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Merge MGLNetworkConfiguration into MGLAccountManager #12417
Labels
gl-ios
iOS
Mapbox Maps SDK for iOS
macOS
Mapbox Maps SDK for macOS
navigation
For the Mapbox Navigation SDK for Android or iOS or navigation use cases in general
Comments
1ec5
added
iOS
Mapbox Maps SDK for iOS
macOS
Mapbox Maps SDK for macOS
navigation
For the Mapbox Navigation SDK for Android or iOS or navigation use cases in general
labels
Jul 18, 2018
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions. |
I am working on this in #13754. Because the events library reads the API base URL from the cc @rclee |
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions. |
We’ve extended |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
gl-ios
iOS
Mapbox Maps SDK for iOS
macOS
Mapbox Maps SDK for macOS
navigation
For the Mapbox Navigation SDK for Android or iOS or navigation use cases in general
MGLNetworkConfiguration is a singleton that currently does nothing but store the result of looking up the Info.plist’s
MGLMapboxAPIBaseURL
value. But calling-[NSBundle objectForInfoDictionaryKey:]
is really fast, so fast that we could inline the call to-[MGLNetworkConfiguration apiBaseURL:]
without affecting performance in an appreciable way.That said, there is an unused
-setAPIBaseURL:
method. The ability to set the API base URL on the fly at runtime could be useful for the same reason that the-[MGLMapboxAccountManager setAccessToken:]
method is sometimes useful. We don’t guarantee that the developer can swap access tokens out from under an existing map view, but the method does give the developer some flexibility in choosing when to initialize the SDK.An access token is meaningless without an accompanying API base URL, so we could merge MGLNetworkConfiguration into MGLAccountManager and make the
apiBaseURL
property public. The Info.plist key would remain as the preferred way to set the API base URL./ref #6709 (comment)
/cc @lloydsheng @m-stephen
The text was updated successfully, but these errors were encountered: