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

Commit

Permalink
[ios,macos] add Info.plist key guides
Browse files Browse the repository at this point in the history
  • Loading branch information
incanus committed Oct 26, 2016
1 parent 01a67a4 commit 0964964
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions platform/ios/Info.plist Keys.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Info.plist Keys

The SDK supports several custom `Info.plist` keys in your application in order to configure various settings.

## MGLMapboxAccessToken

Use this key to set your Mapbox API [access token](https://www.mapbox.com/help/define-access-token/). This key is required for all map use.

## MGLMapboxAPIBaseURL

Use this key if you need to customize the API base URL used throughout the SDK. If unset, the default Mapbox API is used.

## MGLMapboxMetricsEnabledSettingShownInApp

If you have implemented custom opt-out of Mapbox Telemetry within the user interface of your app, use this key to disable the built-in check for opt-out support. See [this guide](https://www.mapbox.com/ios-sdk/#telemetry_opt_out) for more details.
1 change: 1 addition & 0 deletions platform/ios/scripts/document.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jazzy \
--github-file-prefix https://github.com/mapbox/mapbox-gl-native/tree/${BRANCH} \
--module-version ${SHORT_VERSION} \
--readme ${README} \
--documentation="platform/ios/Info.plist Keys.md" \
--root-url https://www.mapbox.com/ios-sdk/api/${RELEASE_VERSION}/ \
--theme platform/darwin/docs/theme \
--output ${OUTPUT}
Expand Down
11 changes: 11 additions & 0 deletions platform/macos/Info.plist Keys.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Info.plist Keys

The Mapbox macOS SDK supports custom `Info.plist` keys in your application in order to configure various settings.

## MGLMapboxAccessToken

Use this key to set your Mapbox API [access token](https://www.mapbox.com/help/define-access-token/). This key is required for all map use.

## MGLMapboxAPIBaseURL

Use this key if you need to customize the API base URL used throughout the SDK. If unset, the default Mapbox API is used.
1 change: 1 addition & 0 deletions platform/macos/scripts/document.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jazzy \
--github-file-prefix https://github.com/mapbox/mapbox-gl-native/tree/${BRANCH} \
--module-version ${SHORT_VERSION} \
--readme ${README} \
--documentation="platform/macos/Info.plist Keys.md" \
--theme platform/darwin/docs/theme \
--output ${OUTPUT}
# https://github.com/realm/jazzy/issues/411
Expand Down

0 comments on commit 0964964

Please sign in to comment.