From 70034ad1d03a3896a664af61e1b12b22955ffcc2 Mon Sep 17 00:00:00 2001 From: Aleksander Nowakowski Date: Fri, 27 Oct 2023 14:25:12 +0200 Subject: [PATCH] Error descriptions and string convertibles simplified --- Example/Example/Base.lproj/Main.storyboard | 20 ++--- .../Example/Util/PeripheralState+String.swift | 23 ------ Example/Example/Util/StringConvertibles.swift | 49 ++++++++++++ .../Manager/FileUploadViewController.swift | 3 +- .../FirmwareUpgradeViewController.swift | 30 ++++---- .../FirmwareUploadViewController.swift | 15 ++-- .../Widgets/ImagesViewController.swift | 4 +- .../project.pbxproj | 8 +- Source/Managers/BasicManager.swift | 10 +-- .../Managers/DFU/FirmwareUpgradeManager.swift | 18 ++--- Source/Managers/DefaultManager.swift | 6 +- Source/Managers/FileSystemManager.swift | 32 ++++---- Source/Managers/ImageManager.swift | 76 +++++++++---------- Source/Managers/SettingsManager.swift | 14 ++-- Source/Managers/StatsManager.swift | 10 +-- Source/McuManager.swift | 39 ++++++---- Source/McuMgrResponse.swift | 32 ++++---- 17 files changed, 210 insertions(+), 179 deletions(-) delete mode 100644 Example/Example/Util/PeripheralState+String.swift create mode 100644 Example/Example/Util/StringConvertibles.swift diff --git a/Example/Example/Base.lproj/Main.storyboard b/Example/Example/Base.lproj/Main.storyboard index 68260b5..7cbff01 100644 --- a/Example/Example/Base.lproj/Main.storyboard +++ b/Example/Example/Base.lproj/Main.storyboard @@ -1451,8 +1451,8 @@ - -