From 7ee90901527d951365c97c8b01118586c3b95d8e Mon Sep 17 00:00:00 2001 From: jmkiley Date: Fri, 1 May 2020 12:24:27 -0700 Subject: Restore platform check --- 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