DeviceKit icon indicating copy to clipboard operation
DeviceKit copied to clipboard

Add macos support #184

Open phimage opened this issue 6 years ago • 18 comments

The commit allow to compile with SwiftPM and if necessary I can make a PR just for this one

The second one add models dumped from apple web site

There is some double when using "identifier" so I put the PR as WIP I do not know what to do. Merge into one. Find a way to make some alias with template generations

My very dirty dump script is available here https://github.com/phimage/MacModelDump

phimage avatar Nov 10 '19 18:11 phimage

4 Warnings
:warning: Big PR, consider splitting into smaller
:warning: Plist changed, don’t forget to localize your plist values
:warning: Source/Device.generated.swift#L995 - Prefer non-optional booleans over optional booleans.
:warning: Source/Device.generated.swift#L1734 - Prefer empty collection over optional collection.

SwiftLint found issues

Warnings

File Line Reason
Device.generated.swift 995 Prefer non-optional booleans over optional booleans.
Device.generated.swift 1734 Prefer empty collection over optional collection.

Generated by :no_entry_sign: Danger

devicekit-danger-bot avatar Nov 10 '19 18:11 devicekit-danger-bot

manually removed the double and old mac devices wip: removed

phimage avatar Nov 11 '19 06:11 phimage

Next to the little thing a very nice addition!

Zandor300 avatar Nov 11 '19 10:11 Zandor300

Thanks for the review. I updated manually the iMacPro name


I make different output formats https://github.com/phimage/MacModelDump To output for DeviceKit launch macmodeldump devicekit

phimage avatar Nov 12 '19 09:11 phimage

New macbook pro 16 inch 2019

https://support.apple.com/kb/SP809 https://www.apple.com/macbook-pro-16/ https://www.youtube.com/watch?v=ysRigNyavF4

but no model identifier yet! https://support.apple.com/en-us/HT201300

phimage avatar Nov 14 '19 09:11 phimage

@phimage Sorry for late reply and inactivity. I found some formatting inconsistencies. Please fix those.

~Also, the device identifier is available now: MacBookPro16,1~ Edit: I see you already added that.

Zandor300 avatar Nov 27 '19 11:11 Zandor300

    case macPro2019

Mac Pro (2019) Image

With also some missing macPro that apple add to the its support page

phimage avatar Jan 01 '20 16:01 phimage

Hey, any updates on this? Looks pretty useful.

Kylmakalle avatar Nov 21 '21 23:11 Kylmakalle

@phimage @Zandor300 anything that blocks merge? 😄

Kylmakalle avatar Nov 26 '21 22:11 Kylmakalle

Hello, it is a really useful PR do you plan to merge it soon? Thank you!

skeletom avatar Jan 06 '22 09:01 skeletom

Would also love to see this merged.

pfandrade avatar May 20 '22 16:05 pfandrade

Why wasn't this merged...? No more discussion on it, and this is just stagnant.. very important feature for DeviceKit imo.

vincentleclerc avatar Nov 17 '22 19:11 vincentleclerc

@Zandor300 would love to see this getting merged as well! 🙏

AvdLee avatar Dec 04 '22 20:12 AvdLee

Hi, my Pull Request is very old, a lot of change happens on DeviceKit (see conflicts and new features) and I do not use it anymore (so I will no work on it)

If someone want macOS I think, first is to make a new Pull Request (and maybe be inspired by this one)

phimage avatar Dec 05 '22 12:12 phimage

I do want to take a look at this still at some point, just need to find the time...

Zandor300 avatar Dec 15 '22 22:12 Zandor300

Codecov Report

Merging #217 (ecdfbb1) into master (f19f9f8) will not change coverage. The diff coverage is n/a.

@@      Coverage Diff      @@
##   master   #217   +/-   ##
=============================
=============================

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

codecov-commenter avatar Dec 15 '22 22:12 codecov-commenter