Commit graph

30 commits

Author SHA1 Message Date
andrekir
22671a73db detect UUID to warn firmware is too old 2022-10-12 23:40:54 -03:00
Andre K
8a384af1d2
Change UUID for FromRadio characteristic 2022-10-11 16:25:46 -03:00
andrekir
5382fdae49 update for proto changes 2022-09-18 18:35:13 -03:00
andrekir
2ed5548abb create ChannelSet datastore 2022-09-12 19:07:30 -03:00
andrekir
d9d46236dc use LocationListenerCompat 2022-09-12 18:20:36 -03:00
andrekir
8dd4506a45 fix onProviderDisabled exception 2022-09-06 18:15:06 -03:00
andrekir
188d1fddaa remove play services 2022-09-05 00:14:08 -03:00
andrekir
5eb5cd1421 incorporate androidlib 2022-09-04 22:52:40 -03:00
andrekir
4f4750c339 refactor permissions 2022-09-03 11:07:10 -03:00
andrekir
325ef8e1b6 add bluetooth config proto 2022-08-23 08:23:57 -03:00
Mike Cumings
c1bbf1411a Explicitly enable DTR/RTS to fix RAK serial comms 2022-07-29 14:03:04 -07:00
andrekir
1009e1fba2 update MockInterface firmwareVersion 2022-07-26 19:54:33 -03:00
andrekir
3239867523 remove okhttp3 lib 2022-07-11 23:19:49 -03:00
andrekir
7905bc6f70 fix multiple startInterface() calls 2022-06-27 22:28:51 -03:00
Mike Cumings
7046fffed4 Set default USB baud rate to 115200 to match Meshtastic-device 2022-06-17 10:14:59 -07:00
andrekir
54f6112908 create LocalConfig DataStore 2022-06-11 18:36:57 -03:00
andrekir
48fd657d8a update protobufs 2022-05-26 16:23:47 -03:00
Mike Cumings
5546e74b46 Extract RadioInterfaceService companion object functions
In preparation for replacing the `InterfaceFactory` with an
injectable form we need to convert static methods that call
`InterfaceFactory` into non-static, injected forms.

Also:
- Updated kotlin `-Xopt-in` to `-opt-in` to remove build
  time warnings.
- Removed some unused `RadioInterfaceService` code.
2022-05-20 14:27:39 -07:00
andrekir
6bda993851 move location service to repository 2022-05-20 09:13:59 -03:00
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