summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Kiley <jmkiley@users.noreply.github.com>2020-05-01 16:35:07 -0700
committerGitHub <noreply@github.com>2020-05-01 16:35:07 -0700
commit0895c698d95d8ea35cb7dc35f667736f26f0e098 (patch)
tree1d80095ac3f1c01ade5422f7a57e69a24f236a47
parentd60fd302b1f6563e7d16952f8855122fdcc85f73 (diff)
downloadqtlocation-mapboxgl-0895c698d95d8ea35cb7dc35f667736f26f0e098.tar.gz
[darwin] Restore platform check for sku token (#16456)
-rw-r--r--platform/darwin/src/http_file_source.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/darwin/src/http_file_source.mm b/platform/darwin/src/http_file_source.mm
index b8ec501d57..61428df8d4 100644
--- a/platform/darwin/src/http_file_source.mm
+++ b/platform/darwin/src/http_file_source.mm
@@ -199,6 +199,7 @@ NSURL *resourceURL(const Resource& resource) {
NSURL *url = [NSURL URLWithString:@(resource.url.c_str())];
+#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
if (isValidMapboxEndpoint(url)) {
NSURLComponents *components = [NSURLComponents componentsWithURL:url resolvingAgainstBaseURL:NO];
NSMutableArray *queryItems = [NSMutableArray array];
@@ -217,6 +218,7 @@ NSURL *resourceURL(const Resource& resource) {
components.queryItems = queryItems;
url = components.URL;
}
+#endif
return url;
}