Skip to content

Commit c8231e7

Browse files
authored
Use MBXAccessToken as default access token. (#212)
1 parent ce3f4f6 commit c8231e7

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

Cartfile.private

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
binary "https://www.mapbox.com/ios-sdk/Mapbox-iOS-SDK.json" ~> 5.5
22
github "AliSoftware/OHHTTPStubs" ~> 9.0
3+
github "mapbox/mapbox-events-ios" ~> 0.10.2

Cartfile.resolved

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
binary "https://www.mapbox.com/ios-sdk/Mapbox-iOS-SDK.json" "5.9.0"
22
github "AliSoftware/OHHTTPStubs" "9.0.0"
3+
github "mapbox/mapbox-events-ios" "v0.10.8"

MapboxGeocoder.xcodeproj/project.pbxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,10 +931,12 @@
931931
);
932932
inputPaths = (
933933
"$(SRCROOT)/Carthage/Build/iOS/Mapbox.framework",
934+
"$(SRCROOT)/Carthage/Build/iOS/MapboxMobileEvents.framework",
934935
);
935936
name = "Copy Frameworks";
936937
outputPaths = (
937938
"$(BUILT_PRODUCTS_DIR)/$(FRAMEWORKS_FOLDER_PATH)/Mapbox.framework",
939+
"$(BUILT_PRODUCTS_DIR)/$(FRAMEWORKS_FOLDER_PATH)/MapboxMobileEvents.framework",
938940
);
939941
runOnlyForDeploymentPostprocessing = 0;
940942
shellPath = /bin/sh;
@@ -947,6 +949,7 @@
947949
);
948950
inputPaths = (
949951
"$(SRCROOT)/Carthage/Build/iOS/Mapbox.framework",
952+
"$(SRCROOT)/Carthage/Build/iOS/MapboxMobileEvents.framework",
950953
);
951954
name = "Copy Frameworks";
952955
outputPaths = (

Sources/MapboxGeocoder/MBGeocoder.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ typealias JSONDictionary = [String: Any]
77
public let MBGeocoderErrorDomain = "MBGeocoderErrorDomain"
88

99
/// The Mapbox access token specified in the main application bundle’s Info.plist.
10-
let defaultAccessToken = Bundle.main.infoDictionary?["MGLMapboxAccessToken"] as? String
10+
let defaultAccessToken =
11+
Bundle.main.object(forInfoDictionaryKey: "MBXAccessToken") as? String ??
12+
Bundle.main.object(forInfoDictionaryKey: "MGLMapboxAccessToken") as? String
1113

1214
/// The user agent string for any HTTP requests performed directly within this library.
1315
let userAgent: String = {

0 commit comments

Comments
 (0)