Skip to content

Commit

Permalink
fix: added m3 platform detection
Browse files Browse the repository at this point in the history
  • Loading branch information
exelban committed Dec 4, 2023
1 parent b3d1323 commit 23a9541
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ identifier_name:
line_length: 200

type_body_length:
- 500
- 700
- 1000

file_length:
- 1200
- 1600
- 1400
- 1800
10 changes: 10 additions & 0 deletions Kit/plugins/SystemKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Stats/Supporting Files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>512</string>
<string>513</string>
<key>Description</key>
<string>Simple macOS system monitor in your menu bar</string>
<key>LSApplicationCategoryType</key>
Expand Down

0 comments on commit 23a9541

Please sign in to comment.