diff --git a/Befund.xcodeproj/project.pbxproj b/Befund.xcodeproj/project.pbxproj index 58bf270..7057999 100644 --- a/Befund.xcodeproj/project.pbxproj +++ b/Befund.xcodeproj/project.pbxproj @@ -928,12 +928,12 @@ CODE_SIGN_IDENTITY = "Apple Development: Artur Savitskiy (J576JNSQ97)"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Distribution: Limetec Biotechnologies GmbH (W86CN3N7WD)"; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 3; + CURRENT_PROJECT_VERSION = 4; DEVELOPMENT_TEAM = W86CN3N7WD; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = W86CN3N7WD; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Befund/Info.plist; - INFOPLIST_KEY_CFBundleDisplayName = "Limbach Befund2Go"; + INFOPLIST_KEY_CFBundleDisplayName = Befund2Go; INFOPLIST_KEY_NSCameraUsageDescription = "Die Kamera wird verwendet, um den QR-Code des Labors zu scannen"; INFOPLIST_KEY_NSFaceIDUsageDescription = "Biometrische Daten sind notwendig um die PIN anzufordern"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; @@ -969,12 +969,12 @@ CODE_SIGN_IDENTITY = "Apple Development: Artur Savitskiy (J576JNSQ97)"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Distribution: Limetec Biotechnologies GmbH (W86CN3N7WD)"; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 3; + CURRENT_PROJECT_VERSION = 4; DEVELOPMENT_TEAM = W86CN3N7WD; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = W86CN3N7WD; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Befund/Info.plist; - INFOPLIST_KEY_CFBundleDisplayName = "Limbach Befund2Go"; + INFOPLIST_KEY_CFBundleDisplayName = Befund2Go; INFOPLIST_KEY_NSCameraUsageDescription = "Die Kamera wird verwendet, um den QR-Code des Labors zu scannen"; INFOPLIST_KEY_NSFaceIDUsageDescription = "Biometrische Daten sind notwendig um die PIN anzufordern"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; diff --git a/Befund/Core/Https/Request.swift b/Befund/Core/Https/Request.swift index fe49cd7..b5bcf68 100644 --- a/Befund/Core/Https/Request.swift +++ b/Befund/Core/Https/Request.swift @@ -197,9 +197,10 @@ extension Core } } - public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) +/* public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) { -#if DEBUG + completionHandler(.useCredential, URLCredential(trust: challenge.protectionSpace.serverTrust!)) + /*#if DEBUG completionHandler(.useCredential, URLCredential(trust: challenge.protectionSpace.serverTrust!)) #else if(challenge.protectionSpace.host.contains("pba-simulator.patientenbefundapp.labor-limbach-hannover.de")) @@ -210,8 +211,8 @@ extension Core { completionHandler(.performDefaultHandling, nil) } -#endif - } +#endif*/ + }*/ } /** @@ -351,16 +352,19 @@ extension Core } } - public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) { -#if DEBUG +/* public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) { + + let urlCredential = URLCredential(trust: challenge.protectionSpace.serverTrust!) + completionHandler(.useCredential, urlCredential) + /*#if DEBUG // Accept all certificates let urlCredential = URLCredential(trust: challenge.protectionSpace.serverTrust!) completionHandler(.useCredential, urlCredential) #else completionHandler(.performDefaultHandling, nil) -#endif - } +#endif*/ + }*/ } /**