Unverified Commit 896ee8d8 authored by Andrei Salavei's avatar Andrei Salavei Committed by GitHub

Use actual openURL method on iOS (#990)

Fixes the following error when calling `URIHandler_openUri` on iOS 18:

```
The caller of UIApplication.openURL(_:) needs to migrate to the non-deprecated UIApplication.open(_:options:completionHandler:). Force returning false (NO).
```

Fixes: https://youtrack.jetbrains.com/issue/CMP-6699
parent 355ede92
......@@ -4,7 +4,11 @@ import platform.Foundation.NSURL.Companion.URLWithString
import platform.UIKit.UIApplication
internal actual fun URIHandler_openUri(uri: String) {
UIApplication.sharedApplication.openURL(URLWithString(uri)!!)
UIApplication.sharedApplication.openURL(
url = URLWithString(uri)!!,
options = emptyMap<Any?, Any>(),
completionHandler = null
)
}
// TODO: not sure if correct.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment