From 23a9541f321fa7a21baf54f859c1bcae7e0d398d Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Mon, 4 Dec 2023 21:45:03 +0100 Subject: [PATCH] fix: added m3 platform detection --- .swiftlint.yml | 6 +++--- Kit/plugins/SystemKit.swift | 10 ++++++++++ Stats/Supporting Files/Info.plist | 2 +- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.swiftlint.yml b/.swiftlint.yml index 1e3eefbc..bc9127cd 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -42,9 +42,9 @@ identifier_name: line_length: 200 type_body_length: - - 500 - 700 + - 1000 file_length: - - 1200 - - 1600 \ No newline at end of file + - 1400 + - 1800 \ No newline at end of file diff --git a/Kit/plugins/SystemKit.swift b/Kit/plugins/SystemKit.swift index 684db548..9fe3bffd 100644 --- a/Kit/plugins/SystemKit.swift +++ b/Kit/plugins/SystemKit.swift @@ -196,6 +196,16 @@ public class SystemKit { } else { self.device.platform = .m2 } + } else if name.contains("m3") { + if name.contains("pro") { + self.device.platform = .m3Pro + } else if name.contains("max") { + self.device.platform = .m3Max + } else if name.contains("ultra") { + self.device.platform = .m3Ultra + } else { + self.device.platform = .m3 + } } } } diff --git a/Stats/Supporting Files/Info.plist b/Stats/Supporting Files/Info.plist index 2dceb53a..0c117205 100755 --- a/Stats/Supporting Files/Info.plist +++ b/Stats/Supporting Files/Info.plist @@ -17,7 +17,7 @@ CFBundleShortVersionString $(MARKETING_VERSION) CFBundleVersion - 512 + 513 Description Simple macOS system monitor in your menu bar LSApplicationCategoryType