v3.2.2: updated libGDX to 1.13.6-SNAPSHOT
This commit is contained in:
@@ -35,11 +35,9 @@ import com.watabou.noosa.Game;
|
||||
import com.watabou.utils.PlatformSupport;
|
||||
|
||||
import org.robovm.apple.audiotoolbox.AudioServices;
|
||||
import org.robovm.apple.foundation.NSURL;
|
||||
import org.robovm.apple.systemconfiguration.SCNetworkReachability;
|
||||
import org.robovm.apple.systemconfiguration.SCNetworkReachabilityFlags;
|
||||
import org.robovm.apple.uikit.UIApplication;
|
||||
import org.robovm.apple.uikit.UIApplicationOpenURLOptions;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.regex.Matcher;
|
||||
@@ -47,18 +45,6 @@ import java.util.regex.Pattern;
|
||||
|
||||
public class IOSPlatformSupport extends PlatformSupport {
|
||||
|
||||
@Override
|
||||
public boolean openURI( String uri ){
|
||||
//backported from libGDX 1.13.1, required for opening URLs on modern iOS
|
||||
UIApplication uiApp = UIApplication.getSharedApplication();
|
||||
NSURL url = new NSURL(uri);
|
||||
if (uiApp.canOpenURL(url)) {
|
||||
uiApp.openURL(url, new UIApplicationOpenURLOptions(), null);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateDisplaySize() {
|
||||
//non-zero safe insets on left/top/right means device has a notch, show status bar
|
||||
|
||||
Reference in New Issue
Block a user