Commit graph

11 commits

Author SHA1 Message Date
andrekir
c0a22cdc3a add network service discovery 2022-05-17 00:41:41 -03:00
andrekir
841ea515ba expand interface options beyond BLE 2022-05-16 23:32:49 -03:00
Mike Cumings
0acf037000 Merge remote-tracking branch 'remotes/origin/master' 2022-05-06 11:19:11 -07:00
Mike Cumings
678a0358a5 Fix local props being uninitialized prior to constructor execution 2022-05-06 11:18:24 -07:00
andrekir
aaa5c1cf04 move hasCompanionDeviceApi out of BluetoothInterface 2022-04-28 21:40:34 -03:00
Mike Cumings
9687fb7370 RadioInterfaceService is no longer an Android Service
Removes the AIDL and associated support for the `IRadioInterfaceService`.
This should give some performance benefit since radio data no longer
has to round-trip through the platform.
2022-04-22 17:40:01 -07:00
Mike Cumings
4f6357103b Move radio service code verbatim into repository/radio 2022-04-22 10:22:03 -07:00
Mike Cumings
15f0e3bd5b Extract USB serial communication into USB repository
This separates the USB serial connectivity implementation
out of the radio service.  `SerialInterface` now only deals with
radio service concerns.
2022-04-08 15:41:58 -07:00
Mike Cumings
dd41527bbc Initial step in refactoring RadioInterfaceService for dependency injection
Extracts USB device management into a `UsbRepository`.

In order for `SerialInterface to gain access to this prior to
the `RadioInterfaceService` being fully natively dependency
injected, all `InterfaceFactory` implementations needed
to be modified to accept the `UsbRepository` via argument.  This
will go away in a future PR.

Changed `assumePermission` constant to `false` as it was preventing
the request for permission from occurring, breaking serial connectivity.

Minor improvement: SerialInterface re-bonding by device name is
now supported.
2022-04-08 11:34:44 -07:00
Mike Cumings
9592fd68de Issue #369 - Expand bluetooth repository use cases
Changes:
- Adds support for obtaining bonded devices
- Adds support for obtaining BLE scanner
- Consolidates state into a single, immutable data class instance
- Simplified and renamed broadcast receiver
- Renamed view model permissionsUpdated fun to identify the intended use
2022-02-27 11:46:30 -08:00
Mike Cumings
b3878a4240 Issue #369 - Use repository pattern for bluetooth state 2022-02-26 22:59:20 -08:00