mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-07 06:08:47 -04:00
* feat: add support for Device Hardware json and svg graphics Allows for better hardware device display names, graphics, and indication of support. * make detekt happy * Fix: Use first image name to find vector drawable Use the first image name from the `images` list (after removing the ".svg" suffix) to find the corresponding vector drawable resource. * Refactor: Update device detail layout Updated the device detail layout to group device-specific information under a "Device" category. Added a circular background with device-specific color behind the device icon. Moved hardware, support status details to the Device section. * Refactor: Move device hardware logic to MetricsViewModel Moves the logic for retrieving device hardware information and image resources from NodeDetail to MetricsViewModel. Also replaces id lookup with when statement for image resource id mapping. * fix: cache deviceHardwareList, add exception handling * refactor: mutable list unnecessary * default to hw_unknown device image