Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix device model identifier for Mac #22

Merged
merged 1 commit into from
Jun 8, 2024

Conversation

manucheri
Copy link
Contributor

@manucheri manucheri commented Apr 29, 2024

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).

`uname` returns x86_64 (or Apple Silicon equivalent) for Macs.
Get the device name in another way for Mac devices. If it fails,
fallback to the default way (can be represented as "unknown Mac" or
similar).
@manucheri
Copy link
Contributor Author

@goenning With this fix I think all supported platforms should now report a device model corresponding to the actual device the code is running on.

FWIW the method used is similar to how other popular libraries (Firebase) gather the identifier.

Fine to merge?

@cristipufu cristipufu merged commit 02f791e into aptabase:main Jun 8, 2024
4 checks passed
@cristipufu
Copy link
Member

Thanks @manucheri

@manucheri manucheri deleted the 20240429-fix-devicemodel-mac branch June 8, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants