aptabase-swift
aptabase-swift copied to clipboard
Fix device model identifier for Mac
uname
returns x86_64
(or Apple Silicon equivalent) as the device name for Macs. Get the device name in another way for Mac devices. If it fails (it shouldn't AFAIK but still), fallback to the default way (which I guess can be represented as "unknown Mac" or similar).