Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 0895c69

Browse files
authored
[darwin] Restore platform check for sku token (#16456)
1 parent d60fd30 commit 0895c69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

platform/darwin/src/http_file_source.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ BOOL isValidMapboxEndpoint(NSURL *url) {
199199

200200
NSURL *url = [NSURL URLWithString:@(resource.url.c_str())];
201201

202+
#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
202203
if (isValidMapboxEndpoint(url)) {
203204
NSURLComponents *components = [NSURLComponents componentsWithURL:url resolvingAgainstBaseURL:NO];
204205
NSMutableArray *queryItems = [NSMutableArray array];
@@ -217,6 +218,7 @@ BOOL isValidMapboxEndpoint(NSURL *url) {
217218
components.queryItems = queryItems;
218219
url = components.URL;
219220
}
221+
#endif
220222
return url;
221223
}
222224

0 commit comments

Comments
 (0)