diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index fac8bbd..8525b54 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -24,7 +24,7 @@ jobs: build: name: CI/CD - runs-on: macos-latest + runs-on: macos-15 # is not the macos-latest, which should be by the end of August 2025 steps: - name: Checkout diff --git a/GenericApp/GenericApp/UI/WizardDomainViewController.swift b/GenericApp/GenericApp/UI/WizardDomainViewController.swift index e2235a8..74bfe48 100644 --- a/GenericApp/GenericApp/UI/WizardDomainViewController.swift +++ b/GenericApp/GenericApp/UI/WizardDomainViewController.swift @@ -102,10 +102,10 @@ extension WizardDomainViewController: UITextFieldDelegate { } fileprivate func requestAppConfig(_ domain: String) { - async { + Task.init { do { configManager = ConfigManager(apiManagerFactory: { url in - try HttpApiManager(baseUrl: url) + HttpApiManager(baseUrl: url) }) let state = try await configManager!.setDomain(domain: domain) @@ -124,10 +124,6 @@ extension WizardDomainViewController: UITextFieldDelegate { case.complete: self.performSegue(withIdentifier: Segues.goToWebView, sender: self) } - } catch ApiManagerError.invalidUrl { - let alertView = UIAlertController(title: "Error", message: "Invalid domain.\nCheck your input and try again.", preferredStyle: .alert) - alertView.addAction(UIAlertAction(title: "OK", style: .default, handler: nil)) - self.present(alertView, animated: true, completion: nil) } catch { let alertView = UIAlertController(title: "Error", message: "Error occurred getting app config.\nCheck your input and try again.", preferredStyle: .alert) alertView.addAction(UIAlertAction(title: "OK", style: .default, handler: nil))