Meshtastic-Android icon indicating copy to clipboard operation
Meshtastic-Android copied to clipboard

Continued work on #369: Inject radio interface implementations

Open mcumings opened this issue 3 years ago • 0 comments

This required creation of new interfaces in order to break the static coupling. This also allowed for the removal of some plumbing of dependencies of these implementations since they are now directly injected.

The resulting code is not my favorite but I'm avoiding fan-out to callers.

This also moves the needle a very small amount on increasing the encapsulation of the interface ID type mappings into InterfaceFactory. I think a god next step would be to create an object to represent a complete address so that we can maintain type safety and eliminate the parsing and reassembly of addresses.

mcumings avatar Sep 09 '22 22:09 mcumings