diff --git a/enzevalos_iphone/Logger.swift b/enzevalos_iphone/Logger.swift index fb124991fba8dc1aa02d2880957ddb9e71461e01..02fbf8ba81e9f3197a6a5c6d7fe19fe79874fa78 100644 --- a/enzevalos_iphone/Logger.swift +++ b/enzevalos_iphone/Logger.swift @@ -296,7 +296,6 @@ class Logger{ static func sendCallback(error: Error?) { guard error == nil else { - print(error!) return } @@ -340,7 +339,6 @@ public class LogInUserDefaults { func incrementEventCounter(eventName: String) { let oldValue = logger.integer(forKey: "\(prefix).\(eventName)") let counter = oldValue + 1 - print("\(eventName): #\(counter) [oldvalue: \(oldValue)]") logger.set(counter, forKey: "\(prefix).\(eventName)") } @@ -370,8 +368,6 @@ public class LogInUserDefaults { mean = mean + (delta / Double(n)) let delta2 = duration - mean sqD = sqD + delta * delta2 - print("\(eventName): duration = \(duration) sqD: \(sqD) n = \(n)->New mean: \(mean)") - // update values logger.set(sqD, forKey: "\(prefix).\(eventName+nameSqD)") diff --git a/enzevalos_iphone/SendViewController.swift b/enzevalos_iphone/SendViewController.swift index acf0299a4352183980ab0e1864f4de542bfea45e..ea331c0bc08f55e05d428804f6c1353ed6ab1818 100644 --- a/enzevalos_iphone/SendViewController.swift +++ b/enzevalos_iphone/SendViewController.swift @@ -754,6 +754,7 @@ class SendViewController: UIViewController { DispatchQueue.main.async { self.updateSecurityUI() } })) } else { + icon = .confidential var title = NSLocalizedString("sendInsecure", comment: "This mail should be send insecurely") var actionType = LogData.UserInteractionPopUp.disableConf if recipientSecurityState == .allInsecure || recipientSecurityState == .mixed { diff --git a/enzevalos_iphone/study parameters/StudyParameterProtocol.swift b/enzevalos_iphone/study parameters/StudyParameterProtocol.swift index 72e54d75544a67795c62268a8ac9a806999713a5..6f449b6dca61f44137bf1ec4c7fc08038e6af9e3 100644 --- a/enzevalos_iphone/study parameters/StudyParameterProtocol.swift +++ b/enzevalos_iphone/study parameters/StudyParameterProtocol.swift @@ -36,7 +36,6 @@ extension StudyParameterProtocol { try keychain.remove(self.keyName) } catch { - print(error) return false } diff --git a/enzevalos_iphoneUITests/OnboardingTest.swift b/enzevalos_iphoneUITests/OnboardingTest.swift index e4016626fa46524cad6cbd35192d4671fd94d4d0..887258d652e70cf2d8237d2d4e9473ef129eb8d8 100644 --- a/enzevalos_iphoneUITests/OnboardingTest.swift +++ b/enzevalos_iphoneUITests/OnboardingTest.swift @@ -25,27 +25,16 @@ class OnboardingTest: XCTestCase { override func tearDown() { // Put teardown code here. This method is called after the invocation of each test method in the class. } - /* - func numberOf(events: IntroState) -> Int { - return -1 - } - */ func testLogging() { // Use recording to get started writing UI tests. // Use XCTAssert and related functions to verify your tests produce the correct results. - print("Start!") app.otherElements.containing(.pageIndicator, identifier:"page 1 of 5").children(matching: .other).element.children(matching: .other).element.children(matching: .other).element.children(matching: .other).element.swipeLeft() - print("1") - // XCTAssertEqual(numberOf(events: .Welcome), 1) app.otherElements.containing(.pageIndicator, identifier:"page 2 of 5").children(matching: .other).element.children(matching: .other).element.children(matching: .other).element.children(matching: .other).element.swipeLeft() - print("2") app/*@START_MENU_TOKEN@*/.staticTexts["OnboardSubTextAccessibilityIdentifier"]/*[[".staticTexts[\"You, the sender and both mail providers know the content of the mail but who sent the mail?\\nSender addresses can be freely chosen. A fraud can impersonate a person when using a known mail address as sender address.\"]",".staticTexts[\"OnboardSubTextAccessibilityIdentifier\"]"],[[[-1,1],[-1,0]]],[0]]@END_MENU_TOKEN@*/.swipeLeft() - print("3") app.otherElements["OnboardInputViewAccessibilityIdentifier"].swipeLeft() - print("4") } }