diff --git a/Mist/Extensions/UNNotificationAction+Extension.swift b/Mist/Extensions/UNNotificationAction+Extension.swift index 42d632e..5ff1931 100644 --- a/Mist/Extensions/UNNotificationAction+Extension.swift +++ b/Mist/Extensions/UNNotificationAction+Extension.swift @@ -8,7 +8,7 @@ import UserNotifications extension UNNotificationAction { - struct Identifier { + enum Identifier { /// Show Identifier static let show: String = "Show" } diff --git a/Mist/Extensions/UNNotificationCategory+Extension.swift b/Mist/Extensions/UNNotificationCategory+Extension.swift index 1f484a6..9633763 100644 --- a/Mist/Extensions/UNNotificationCategory+Extension.swift +++ b/Mist/Extensions/UNNotificationCategory+Extension.swift @@ -8,7 +8,7 @@ import UserNotifications extension UNNotificationCategory { - struct Identifier { + enum Identifier { /// Success Identifier static let success: String = "Success" /// Failure Identifier diff --git a/Mist/Helpers/Codesigner.swift b/Mist/Helpers/Codesigner.swift index 02cefb1..9b4252b 100644 --- a/Mist/Helpers/Codesigner.swift +++ b/Mist/Helpers/Codesigner.swift @@ -8,7 +8,7 @@ import Foundation /// Helper struct to codesign a file (ie. Disk Image). -struct Codesigner { +enum Codesigner { /// Sign a file with the provided signing identity. /// /// - Parameters: diff --git a/Mist/Helpers/DirectoryCreator.swift b/Mist/Helpers/DirectoryCreator.swift index c10fc04..0ea0fe2 100644 --- a/Mist/Helpers/DirectoryCreator.swift +++ b/Mist/Helpers/DirectoryCreator.swift @@ -8,7 +8,7 @@ import Foundation /// Helper struct to create directories. -struct DirectoryCreator { +enum DirectoryCreator { /// Create a directory at the provided URL. /// /// - Parameters: diff --git a/Mist/Helpers/DirectoryRemover.swift b/Mist/Helpers/DirectoryRemover.swift index da8df2e..7f2cf59 100644 --- a/Mist/Helpers/DirectoryRemover.swift +++ b/Mist/Helpers/DirectoryRemover.swift @@ -9,7 +9,7 @@ import Foundation import SecureXPC /// Helper struct to remove directories -struct DirectoryRemover { +enum DirectoryRemover { /// Remove directory at the provided URL. /// /// - Parameters: diff --git a/Mist/Helpers/DiskImageCreator.swift b/Mist/Helpers/DiskImageCreator.swift index 101897a..ba2cc16 100644 --- a/Mist/Helpers/DiskImageCreator.swift +++ b/Mist/Helpers/DiskImageCreator.swift @@ -8,7 +8,7 @@ import Foundation /// Helper struct to create disk images. -struct DiskImageCreator { +enum DiskImageCreator { /// Create an empty Disk Image of fixed size. /// /// - Parameters: diff --git a/Mist/Helpers/DiskImageMounter.swift b/Mist/Helpers/DiskImageMounter.swift index fc0627b..ad66195 100644 --- a/Mist/Helpers/DiskImageMounter.swift +++ b/Mist/Helpers/DiskImageMounter.swift @@ -8,7 +8,7 @@ import Foundation /// Helper struct to mount Disk Images. -struct DiskImageMounter { +enum DiskImageMounter { /// Mount a Disk Image at the provided mount point. /// /// - Parameters: diff --git a/Mist/Helpers/DiskImageUnmounter.swift b/Mist/Helpers/DiskImageUnmounter.swift index 4533773..df91e3b 100644 --- a/Mist/Helpers/DiskImageUnmounter.swift +++ b/Mist/Helpers/DiskImageUnmounter.swift @@ -8,7 +8,7 @@ import Foundation /// Helper struct to unmount Disk Images. -struct DiskImageUnmounter { +enum DiskImageUnmounter { /// Unmount a Disk Image at the provided mount point. /// /// - Parameters: diff --git a/Mist/Helpers/FileAttributesUpdater.swift b/Mist/Helpers/FileAttributesUpdater.swift index df5ffe9..56a96e5 100644 --- a/Mist/Helpers/FileAttributesUpdater.swift +++ b/Mist/Helpers/FileAttributesUpdater.swift @@ -9,7 +9,7 @@ import Foundation import SecureXPC /// Helper struct to update file / directory attributes -struct FileAttributesUpdater { +enum FileAttributesUpdater { /// Update file / directory attributes at the provided URL. /// /// - Parameters: diff --git a/Mist/Helpers/FileCopier.swift b/Mist/Helpers/FileCopier.swift index fc3eca8..1f229e1 100644 --- a/Mist/Helpers/FileCopier.swift +++ b/Mist/Helpers/FileCopier.swift @@ -8,7 +8,7 @@ import Foundation /// Helper struct to copy files. -struct FileCopier { +enum FileCopier { /// Copy a file from one location to another. /// /// - Parameters: diff --git a/Mist/Helpers/FileMover.swift b/Mist/Helpers/FileMover.swift index a83464c..e23622a 100644 --- a/Mist/Helpers/FileMover.swift +++ b/Mist/Helpers/FileMover.swift @@ -8,7 +8,7 @@ import Foundation /// Helper struct to move files. -struct FileMover { +enum FileMover { /// Move a file from one location to another. /// /// - Parameters: diff --git a/Mist/Helpers/ISOConverter.swift b/Mist/Helpers/ISOConverter.swift index dc527bd..1954f54 100644 --- a/Mist/Helpers/ISOConverter.swift +++ b/Mist/Helpers/ISOConverter.swift @@ -8,7 +8,7 @@ import Foundation /// Helper struct to convert Disk Images to ISOs. -struct ISOConverter { +enum ISOConverter { /// Convert a Disk Image to an ISO. /// /// - Parameters: diff --git a/Mist/Helpers/InstallMediaCreator.swift b/Mist/Helpers/InstallMediaCreator.swift index 3e9281d..584b839 100644 --- a/Mist/Helpers/InstallMediaCreator.swift +++ b/Mist/Helpers/InstallMediaCreator.swift @@ -9,7 +9,7 @@ import Foundation import SecureXPC /// Helper struct to execute the `createinstallmedia` command found in macOS Install app bundles. -struct InstallMediaCreator { +enum InstallMediaCreator { /// Create the macOS Install Media at the specified mount point. /// /// - Parameters: diff --git a/Mist/Helpers/InstallerCreator.swift b/Mist/Helpers/InstallerCreator.swift index 1bc8a0d..b7ee30a 100644 --- a/Mist/Helpers/InstallerCreator.swift +++ b/Mist/Helpers/InstallerCreator.swift @@ -9,7 +9,7 @@ import Foundation import SecureXPC /// Helper Struct used to create macOS Installers. -struct InstallerCreator { +enum InstallerCreator { /// Creates a recently downloaded macOS Installer. /// /// - Parameters: diff --git a/Mist/Helpers/PackageCreator.swift b/Mist/Helpers/PackageCreator.swift index 4a882a3..3f63467 100644 --- a/Mist/Helpers/PackageCreator.swift +++ b/Mist/Helpers/PackageCreator.swift @@ -8,7 +8,7 @@ import Foundation /// Helper struct to create macOS Installer Packages. -struct PackageCreator { +enum PackageCreator { /// Create a macOS Installer Package based off the passed in `Installer` struct. /// /// - Parameters: diff --git a/Mist/Helpers/PrivilegedHelperTool.swift b/Mist/Helpers/PrivilegedHelperTool.swift index 1519ccc..7ef93f9 100644 --- a/Mist/Helpers/PrivilegedHelperTool.swift +++ b/Mist/Helpers/PrivilegedHelperTool.swift @@ -8,7 +8,7 @@ import Foundation /// Helper struct to perform lookups on the Privilged Helper Tool executable. -struct PrivilegedHelperTool { +enum PrivilegedHelperTool { /// The URL of the Privileged Helper Tool within the Mist app bundle. static let availableURL: URL = URL(fileURLWithPath: "\(Bundle.main.bundlePath)/Contents/Library/LaunchServices/\(String.helperIdentifier)") /// The URL of the Privileged Helper Tool within /Library/PrivilegedHelperTools. diff --git a/Mist/Helpers/ProcessKiller.swift b/Mist/Helpers/ProcessKiller.swift index 8e04269..ddaa6e6 100644 --- a/Mist/Helpers/ProcessKiller.swift +++ b/Mist/Helpers/ProcessKiller.swift @@ -8,7 +8,7 @@ import SecureXPC /// Helper struct to kill the child process of the Privileted Helper Tool. -struct ProcessKiller { +enum ProcessKiller { /// Attempts to kill the child process of the Privileged Helper Tool. /// /// - Throws: A `MistError` if the process fails to be killed. diff --git a/Mist/Helpers/PropertyListUpdater.swift b/Mist/Helpers/PropertyListUpdater.swift index 1db41b5..c93097f 100644 --- a/Mist/Helpers/PropertyListUpdater.swift +++ b/Mist/Helpers/PropertyListUpdater.swift @@ -8,7 +8,7 @@ import Foundation /// Helper struct to update a Property List key-pair value. -struct PropertyListUpdater { +enum PropertyListUpdater { /// Update a key-pair value in a Property List. /// /// - Parameters: diff --git a/Mist/Helpers/Validator.swift b/Mist/Helpers/Validator.swift index fd88d04..2bff1e4 100644 --- a/Mist/Helpers/Validator.swift +++ b/Mist/Helpers/Validator.swift @@ -9,7 +9,7 @@ import CryptoKit import Foundation /// Helper struct used to validate Firmware and Installer checksums. -struct Validator { +enum Validator { /// Validates a Firmware's checksum. /// /// - Parameters: diff --git a/Mist/Model/Hardware.swift b/Mist/Model/Hardware.swift index a15e6d8..3aabdb0 100644 --- a/Mist/Model/Hardware.swift +++ b/Mist/Model/Hardware.swift @@ -8,7 +8,7 @@ import Foundation /// Hardware Struct used to retrieve Hardware information. -struct Hardware { +enum Hardware { /// Hardware Architecture (Apple Silicon or Intel). static var architecture: Architecture? { #if arch(arm64) diff --git a/MistHelperTool/main.swift b/MistHelperTool/main.swift index 9b94ca2..6383979 100644 --- a/MistHelperTool/main.swift +++ b/MistHelperTool/main.swift @@ -9,7 +9,7 @@ import Foundation import SecureXPC /// Helper Tool struct to run a command sent from the main application. -struct HelperToolCommandRunner { +enum HelperToolCommandRunner { /// Run the requested command and return the status and output. /// /// - Parameters: