From 76dc4295bb099e3dd8c1b0a13a773b75b9925b44 Mon Sep 17 00:00:00 2001 From: Boris Bugor Date: Wed, 23 Nov 2022 22:51:32 +0200 Subject: [PATCH 1/2] remove annoying printing --- netfox/Core/NFXHTTPModel.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/netfox/Core/NFXHTTPModel.swift b/netfox/Core/NFXHTTPModel.swift index bddf6172..33d1892e 100755 --- a/netfox/Core/NFXHTTPModel.swift +++ b/netfox/Core/NFXHTTPModel.swift @@ -173,8 +173,7 @@ fileprivate func < (lhs: T?, rhs: T?) -> Bool { @objc public func readRawData(from fileURL: URL) -> Data? { do { return try Data(contentsOf: fileURL) - } catch let error { - print("[NFX]: Failed to load data from [\(fileURL)] - \(error.localizedDescription)") + } catch { return nil } } From 4d324bff0f426f2d88c187fe971e29a9528c2ba5 Mon Sep 17 00:00:00 2001 From: Boris Bugor Date: Tue, 14 Feb 2023 13:13:24 +0200 Subject: [PATCH 2/2] remove shake motion --- netfox/iOS/NFXHelper_iOS.swift | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/netfox/iOS/NFXHelper_iOS.swift b/netfox/iOS/NFXHelper_iOS.swift index 6cb42e7d..a548cd5b 100755 --- a/netfox/iOS/NFXHelper_iOS.swift +++ b/netfox/iOS/NFXHelper_iOS.swift @@ -9,18 +9,6 @@ import UIKit -extension UIWindow { - override open func motionEnded(_ motion: UIEvent.EventSubtype, with event: UIEvent?) { - if NFX.sharedInstance().getSelectedGesture() == .shake { - if (event!.type == .motion && event!.subtype == .motionShake) { - NFX.sharedInstance().motionDetected() - } - } else { - super.motionEnded(motion, with: event) - } - } -} - public extension UIDevice { class func getNFXDeviceType() -> String {