diff options
author | Jason Wray <jason@mapbox.com> | 2016-04-12 19:53:32 -0400 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2016-04-13 18:04:06 -0400 |
commit | 7e0a2e36e60d9def45f396b8dc9ee109c24013ba (patch) | |
tree | d8fe4f7cd86c11923572b692314e4a65b7ebe5b3 /platform/ios/src/MGLAPIClient.m | |
parent | ef65d2015c60d206cc72571c80d6ab05d9dd24c2 (diff) | |
download | qtlocation-mapboxgl-7e0a2e36e60d9def45f396b8dc9ee109c24013ba.tar.gz |
[ios] Convert telemetry test server setting to user default
- Previously looked in app's Info.plist, now looks at NSUserDefaults
Diffstat (limited to 'platform/ios/src/MGLAPIClient.m')
-rw-r--r-- | platform/ios/src/MGLAPIClient.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/src/MGLAPIClient.m b/platform/ios/src/MGLAPIClient.m index 91bc074425..5ce8b40f1a 100644 --- a/platform/ios/src/MGLAPIClient.m +++ b/platform/ios/src/MGLAPIClient.m @@ -87,7 +87,7 @@ static NSString * const MGLAPIClientHTTPMethodPost = @"POST"; } - (void)setupBaseURL { - NSString *testServerURL = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"MGLMetricsTestServerURL"]; + NSString *testServerURL = [[NSUserDefaults standardUserDefaults] stringForKey:@"MGLTelemetryTestServerURL"]; if (testServerURL) { _baseURL = testServerURL; _usesTestServer = YES; |