Bumped deployment requirements for Apple platforms
We require at least Xcode 12.2 and macOS SDK 11 to build. We support deploying to macOS 10.13, iOS 11.0, and tvOS 11.0. This cleans up the code significantly
This commit is contained in:
@@ -34,13 +34,7 @@ bool SDL_SYS_OpenURL(const char *url)
|
||||
if (![[UIApplication sharedApplication] canOpenURL:nsurl]) {
|
||||
return SDL_SetError("No handler registered for this type of URL");
|
||||
}
|
||||
if (@available(iOS 10.0, tvOS 10.0, *)) {
|
||||
[[UIApplication sharedApplication] openURL:nsurl options:@{} completionHandler:^(BOOL success) {}];
|
||||
} else {
|
||||
#ifndef SDL_PLATFORM_VISIONOS // Fallback is never available in any version of VisionOS (but correct API always is).
|
||||
[[UIApplication sharedApplication] openURL:nsurl];
|
||||
#endif
|
||||
}
|
||||
[[UIApplication sharedApplication] openURL:nsurl options:@{} completionHandler:^(BOOL success) {}];
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user