From 0895c698d95d8ea35cb7dc35f667736f26f0e098 Mon Sep 17 00:00:00 2001 From: Jordan Kiley Date: Fri, 1 May 2020 16:35:07 -0700 Subject: [darwin] Restore platform check for sku token (#16456) --- platform/darwin/src/http_file_source.mm | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.1