From 7fed96233714431941d137d80dd9422281507346 Mon Sep 17 00:00:00 2001 From: Povilas Staskus <4062343+staskus@users.noreply.github.com> Date: Tue, 10 Sep 2024 09:36:29 +0300 Subject: [PATCH 1/2] Fix compiler issue for Xcode 16 --- .../Email Client Picker/URLHandler.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/WordPressAuthenticator/Email Client Picker/URLHandler.swift b/WordPressAuthenticator/Email Client Picker/URLHandler.swift index 111bc169d..af1992a11 100644 --- a/WordPressAuthenticator/Email Client Picker/URLHandler.swift +++ b/WordPressAuthenticator/Email Client Picker/URLHandler.swift @@ -2,10 +2,18 @@ public protocol URLHandler { /// checks if the specified URL can be opened func canOpenURL(_ url: URL) -> Bool + +#if compiler(>=6) + /// opens the specified URL + func open(_ url: URL, + options: [UIApplication.OpenExternalURLOptionsKey: Any], + completionHandler completion: (@MainActor @Sendable (Bool) -> Void)?) +#else /// opens the specified URL func open(_ url: URL, options: [UIApplication.OpenExternalURLOptionsKey: Any], completionHandler completion: ((Bool) -> Void)?) +#endif } /// conforms UIApplication to URLHandler to allow dependency injection From 0c8a006e8c4441dd2b1860d298d7e2e752a0d232 Mon Sep 17 00:00:00 2001 From: Povilas Staskus <4062343+staskus@users.noreply.github.com> Date: Tue, 10 Sep 2024 09:40:55 +0300 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b70ca4f8..570749277 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,7 +46,7 @@ _None._ ### Internal Changes -_None._ +- Fixed compiler issues for Xcode 16 support [#856] ## 9.0.9