Commit graph

7 commits

Author SHA1 Message Date
James Rich
993f659742
feat: add support for Device Hardware json and svg graphics (#1449)
* 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
2024-12-10 12:02:57 -03:00
andrekir
c4db056b1f refactor: remove firmware assets from release 2023-11-29 05:49:07 -03:00
Kevin Hester
f61cd45847 update to new gradle/android studio 4.1 2020-10-21 17:50:54 +08:00
geeksville
40055f603d Don't include firmware in development builds (speeds install time) 2020-06-28 14:55:02 -07:00
geeksville
368ad3ea2d 0.2.2 hotfix 2020-03-31 08:07:34 -07:00
geeksville
b61d15c9c9 pull latest builds from device code 2020-02-24 09:57:42 -08:00
geeksville
91b5987a5c use slightly more real paths to firmware updates 2020-02-14 13:55:38 -08:00