diff --git a/Befund.xcodeproj/project.pbxproj b/Befund.xcodeproj/project.pbxproj index ddc7a10..da554d7 100644 --- a/Befund.xcodeproj/project.pbxproj +++ b/Befund.xcodeproj/project.pbxproj @@ -929,7 +929,7 @@ 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 = 5; + CURRENT_PROJECT_VERSION = 6; DEVELOPMENT_TEAM = W86CN3N7WD; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = W86CN3N7WD; GENERATE_INFOPLIST_FILE = YES; @@ -971,7 +971,7 @@ 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 = 5; + CURRENT_PROJECT_VERSION = 6; DEVELOPMENT_TEAM = W86CN3N7WD; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = W86CN3N7WD; GENERATE_INFOPLIST_FILE = YES; diff --git a/Befund/Controllers/SettingsController.swift b/Befund/Controllers/SettingsController.swift index c7486c5..da1cc4f 100644 --- a/Befund/Controllers/SettingsController.swift +++ b/Befund/Controllers/SettingsController.swift @@ -425,7 +425,7 @@ class SettingsController: UIViewController, UITextFieldDelegate, UpdatingParentC @IBAction func ButtonAGBOpenClick(_ sender: Any) { let localUrl = Core.Lang.Get(key: "AGB_POLICY_LINK") - let settingsAGBController = AGBPolicyController.InitWebViewController(url: localUrl, previewOnly: true, btnText: Core.Lang.Get(key: "BTN_BACK"), labText: "Datenschutzerklärung") + let settingsAGBController = AGBPolicyController.InitWebViewController(url: localUrl, previewOnly: true, btnText: Core.Lang.Get(key: "BTN_BACK"), labText: Core.Lang.Get(key: "LBL_PRIVACY_POLICY")) settingsAGBController.modalPresentationStyle = .fullScreen let transition = CATransition() diff --git a/Befund/Controllers/SupportController.swift b/Befund/Controllers/SupportController.swift index 107fe4f..d008e58 100644 --- a/Befund/Controllers/SupportController.swift +++ b/Befund/Controllers/SupportController.swift @@ -89,6 +89,11 @@ class SupportController: UIViewController, UITextFieldDelegate, UIAlertViewDeleg self.topicDownPicker = DownPicker(textField: self.support_txtTopic, withData: (SupportTopicsUnregistered as! [Any])) } + self.topicDownPicker.setPlaceholder(Core.Lang.Get(key: "LBL_PLEASE_SELECT")) + self.topicDownPicker.setPlaceholderWhileSelecting(Core.Lang.Get(key: "LBL_PLEASE_SELECT")) + self.topicDownPicker.setToolbarDoneButtonText(Core.Lang.Get(key: "BTN_DONE")) + self.topicDownPicker.setToolbarCancelButtonText(Core.Lang.Get(key: "BTN_CANCEL")) + self.supportPassword_Overlay.frame = self.view.frame self.view.addSubview(self.supportPassword_Overlay) self.supportPassword_Overlay.isHidden = true diff --git a/Befund/Core/Models/Settings.swift b/Befund/Core/Models/Settings.swift index 8e31d2a..6e80d39 100644 --- a/Befund/Core/Models/Settings.swift +++ b/Befund/Core/Models/Settings.swift @@ -11,6 +11,7 @@ extension Core.Models { public class Settings { + public static var policyAgbExplainedKey: String = "policy_accepted_1_2_3" public var public_key: String? = nil public var hashed_private_key: String? = nil public var verificator_hash: String? = nil @@ -141,7 +142,7 @@ extension Core.Models result?.pushNotificationAccepted = false } - let AGBAccepted = dic!.value(forKey: "agb_accepted") + let AGBAccepted = dic!.value(forKey: policyAgbExplainedKey) if (AGBAccepted != nil) { result?.policyAGBExplained = ((AGBAccepted as? NSNumber)!).boolValue @@ -150,23 +151,9 @@ extension Core.Models { result?.policyAGBExplained = false } - - //let host = dic!.value(forKey: "host") - - //if(host != nil) - //{ - //result!.host = Core.Https.Servers(rawValue: host as! String)! - //} - //result!.host = .LABOR_HANNOVER } } - //if(result != nil && - // (result!.public_key == nil || result!.hashed_private_key == nil || result!.verificator_hash == nil)) - //{ - // result = nil - //} - return result } diff --git a/Befund/Info.plist b/Befund/Info.plist index 9ca201a..eece14f 100644 --- a/Befund/Info.plist +++ b/Befund/Info.plist @@ -8,7 +8,7 @@ en LSMinimumSystemVersion - 12.5 + 13.0 NSAppTransportSecurity NSAllowsArbitraryLoads