1
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>NSPrivacyAccessedAPITypes</key>
|
||||
<array/>
|
||||
<key>NSPrivacyCollectedDataTypes</key>
|
||||
<array/>
|
||||
<key>NSPrivacyTracking</key>
|
||||
<false/>
|
||||
<key>NSPrivacyTrackingDomains</key>
|
||||
<array/>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"deploymentTarget": "12"
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import { URL } from 'Foundation';
|
||||
import { UIApplication } from 'UIKit';
|
||||
export function openWeb(url : string) {
|
||||
let href = new URL(string = url)
|
||||
|
||||
|
||||
if (UTSiOS.available("iOS 16.0, *")) {
|
||||
if (UIApplication.shared.canOpenURL(href!)) {
|
||||
UIApplication.shared.open(href!, options= new Map(), completionHandler= nil)
|
||||
}
|
||||
}else{
|
||||
if (UIApplication.shared.canOpenURL(href!)) {
|
||||
UIApplication.shared.openURL(href!)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user