diff --git a/.swiftlint.yml b/.swiftlint.yml index 1dda439..a0aba25 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -11,8 +11,6 @@ disabled_rules: - inert_defer - nesting - no_magic_numbers - - nslocalizedstring_key - - nslocalizedstring_require_bundle - prefixed_toplevel_constant - required_deinit - sorted_enum_cases diff --git a/Genius/Extensions/Swift/String.swift b/Genius/Extensions/Swift/String.swift index e20b380..84f6ddb 100644 --- a/Genius/Extensions/Swift/String.swift +++ b/Genius/Extensions/Swift/String.swift @@ -5,16 +5,12 @@ // Created by F1248. // -import SwiftUI +import Foundation extension String { var localized: String { - if #available(macOS 12, *) { - String(localized: LocalizationValue(self)) - } else { - NSLocalizedString(self, comment: "") - } + String(localized: LocalizationValue(self)) } init?(_ string: (any StringProtocol)?) { diff --git a/Genius/Localizable.xcstrings b/Genius/Localizable.xcstrings index 0db93a1..558a88f 100644 --- a/Genius/Localizable.xcstrings +++ b/Genius/Localizable.xcstrings @@ -39,7 +39,6 @@ } }, "Home" : { - "extractionState" : "manual", "localizations" : { "de" : { "stringUnit" : { @@ -202,23 +201,6 @@ } } }, - "Unknown" : { - "extractionState" : "manual", - "localizations" : { - "de" : { - "stringUnit" : { - "state" : "translated", - "value" : "Unbekannt" - } - }, - "en" : { - "stringUnit" : { - "state" : "translated", - "value" : "Unknown" - } - } - } - }, "Very Simple" : { "extractionState" : "manual", "localizations" : { diff --git a/Genius/Types/SystemInformation/Hardware.swift b/Genius/Types/SystemInformation/Hardware.swift index 3930e32..9c202e9 100644 --- a/Genius/Types/SystemInformation/Hardware.swift +++ b/Genius/Types/SystemInformation/Hardware.swift @@ -5,7 +5,7 @@ // Created by F1248. // -import SwiftUI +import Foundation extension SystemInformation { diff --git a/Genius/Types/VersionNumber.swift b/Genius/Types/VersionNumber.swift index f4227f8..da2eeae 100644 --- a/Genius/Types/VersionNumber.swift +++ b/Genius/Types/VersionNumber.swift @@ -5,8 +5,6 @@ // Created by F1248. // -import SwiftUI - struct VersionNumber { let versions: [Int] diff --git a/README.md b/README.md index cb158f5..cbc073a 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ## Requirements: ### Supported macOS Versions -* macOS Big Sur 11 and later, including recoveryOS +* macOS Ventura 13 and later, including recoveryOS ### Supported Models * Macs (including officially unsupported ones), Hackintoshes and virtual machines diff --git a/README_DE.md b/README_DE.md index 18af536..d2c68a8 100644 --- a/README_DE.md +++ b/README_DE.md @@ -5,7 +5,7 @@ ## Anforderungen: ### Unterstützte macOS-Versionen -* macOS Big Sur 11 und höher, inklusive recoveryOS +* macOS Ventura 13 und höher, inklusive recoveryOS ### Unterstützte Modelle * Macs (inklusive offiziell nicht unterstützten), Hackintoshs und virtuelle Maschinen