Meshtastic-Android/app
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
..
schemas/com.geeksville.mesh.database.MeshtasticDatabase refactor: move ignore node to is_ignored field in NodeInfo 2024-12-07 08:18:18 -03:00
src feat: add support for Device Hardware json and svg graphics (#1449) 2024-12-10 12:02:57 -03:00
.gitignore gitignore 2020-02-19 10:54:29 -08:00
build.gradle chore(deps): update nav_version to v2.8.4 2024-12-07 08:49:41 -03:00
google-services.json chore: simplify mock google-services.json workflow (#1313) 2024-10-14 08:13:35 -03:00
proguard-rules.pro chore: re-enable code shrinking and optimization 2024-09-19 18:17:30 -03:00