diff options
author | jmkiley <jordan.kiley@mapbox.com> | 2019-01-18 11:53:21 -0800 |
---|---|---|
committer | jmkiley <jordan.kiley@mapbox.com> | 2019-02-12 14:36:16 -0800 |
commit | 808c1120c438abc702076635ac8a0d612a9c32aa (patch) | |
tree | 5672bf9f860cf205a8c525734f0e8256213d411b | |
parent | 394a60df0fcb2eebaa0a14f5756f0654cae55555 (diff) | |
download | qtlocation-mapboxgl-808c1120c438abc702076635ac8a0d612a9c32aa.tar.gz |
[ios, macos] made apiBaseURL read-only
-rw-r--r-- | platform/darwin/src/MGLAccountManager.h | 4 | ||||
-rw-r--r-- | platform/darwin/src/MGLAccountManager_Private.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/platform/darwin/src/MGLAccountManager.h b/platform/darwin/src/MGLAccountManager.h index c18bec7e1b..b8c622bcf9 100644 --- a/platform/darwin/src/MGLAccountManager.h +++ b/platform/darwin/src/MGLAccountManager.h @@ -37,9 +37,9 @@ MGL_EXPORT @property (class, nullable) NSString *accessToken; /* - The API base URL that is used to access Mapbox resources. The default base URL is `https://api.mapbox.com`. If `nil`, the Mapbox default base API URL is in use. + The API base URL that is used to access Mapbox resources. To configure this property by setting the `MGLMapboxAPIBaseURL` key in your `Info.plist` The default base URL is `https://api.mapbox.com`. If `nil`, the Mapbox default base API URL is in use. */ -@property (class, nonatomic) NSURL *apiBaseURL; +@property (class, readonly, nonatomic) NSURL *apiBaseURL; + (BOOL)mapboxMetricsEnabledSettingShownInApp __attribute__((unavailable("Telemetry settings are now always shown in the ℹ️ menu."))); diff --git a/platform/darwin/src/MGLAccountManager_Private.h b/platform/darwin/src/MGLAccountManager_Private.h index c2faa0a436..6660af642a 100644 --- a/platform/darwin/src/MGLAccountManager_Private.h +++ b/platform/darwin/src/MGLAccountManager_Private.h @@ -9,6 +9,6 @@ @property (atomic) NSString *accessToken; /// The current API base URL. -@property (atomic) NSURL *apiBaseURL; +@property (atomic, readwrite) NSURL *apiBaseURL; @end |