Commit graph

163 commits

Author SHA1 Message Date
andrekir
9b45ba84f7 improve location enabled check 2022-06-07 00:33:24 -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
andrekir
ef9114ddc1 bluetooth scan & connect UI rework 2022-05-03 12:16:44 -03:00
andrekir
0294da844b update UI when started with BLE disabled 2022-04-30 00:06:49 -03:00
andrekir
b6410dd162 disassociate devices when not bonded 2022-04-29 23:34:03 -03:00
andrekir
0950e12bd0 add BLE associations to devices list 2022-04-28 23:09:06 -03:00
andrekir
aaa5c1cf04 move hasCompanionDeviceApi out of BluetoothInterface 2022-04-28 21:40:34 -03:00
andrekir
34e240d7fa update deprecated intent method 2022-04-28 11:53:32 -03:00
andrekir
27c1817a59 rename isConnected --> connectionState 2022-04-24 12:12:13 -03:00
andrekir
8bde3d2ba4 make MutableLiveData private 2022-04-22 17:22:06 -03:00
Mike Cumings
4f6357103b Move radio service code verbatim into repository/radio 2022-04-22 10:22:03 -07:00
andrekir
bcf0d5be97 remove crashlytics report 2022-04-08 18:37:22 -03: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
andrekir
291e54c275 use locationShareDisabled boolean 2022-03-26 17:09:05 -03:00
andrekir
b8b2a8a86c improve firmware update 2022-03-11 00:12:48 -03:00
Mike Cumings
b3878a4240 Issue #369 - Use repository pattern for bluetooth state 2022-02-26 22:59:20 -08:00
andrekir
eb5abb4be9 only consider BLE pairing for addressValid 2022-02-12 19:33:30 -03:00
andrekir
c04c1b4add move disassociate to SettingsFragment 2022-02-12 19:28:49 -03:00
andrekir
0f3135978c update CompanionDevice Bluetooth bonding 2022-02-12 18:55:42 -03:00
andrekir
875c1542ea catch snackbar exception 2022-02-12 18:54:10 -03:00
Andre Kirchhoff
9cd1856bb9
Merge pull request #372 from meshtastic/release
1.2.57
2022-02-09 23:15:27 -03:00
andrekir
3daa6eac46 use changeScanSelection after deviceManager association 2022-02-09 22:47:28 -03:00
andrekir
9562841922 add user feedback to changeRadioButton 2022-02-09 01:17:34 -03:00
andrekir
25e1ea2fb9 add confirmation feedback to bug report 2022-02-09 00:57:34 -03:00
Mike Cumings
654a32c01c Introduce Hilt dependency injection
Uses Hilt to get the database initialization off of the
main thread.

The initial introduction always has a disproportionate
fan-out of boilerplate. In this case, all entry points which
were using UIViewModel needed to be annotated in order to let
the code gen know that they needed to support it.

The PacketRepository is injected into things via the main
thread (e.g., the MeshService) but due to the lazy declaration,
the database isn't hydrated until the DAO is access while on an
IO thread.
2022-02-08 13:57:04 -08:00
andrekir
94355e25f4 move CompanionDeviceManager back to SettingsFragment 2022-02-08 00:07:51 -03:00
andrekir
a42ba77bf2 clean up snackbar 2022-02-07 21:50:31 -03:00
andrekir
5dc55b52f6 add confirmation dialog for firmware update 2022-02-06 10:30:28 -03:00
andrekir
084c16bfe9 clean up and reformat 2022-01-31 21:55:24 -03:00
andrekir
dc852b97ba add bluetooth_connect permission checks 2022-01-31 21:19:54 -03:00
andrekir
7a316928be update provideLocation feedback 2022-01-26 16:27:16 -03:00
andrekir
f5c9363d06 add bluetooth scan permission 2022-01-25 18:14:10 -03:00
andrekir
8aa2f546b0 update permissions 2022-01-25 15:59:45 -03:00
andrekir
d9e1f17418 handle bluetooth disabled 2022-01-25 01:34:46 -03:00
andrekir
71e8e9ff6f fix provideLocationCheckbox 2022-01-25 01:20:31 -03:00
andrekir
0fa33eac6b refactor provideLocationCheckbox 2022-01-24 16:44:18 -03:00
andrekir
23063516b0 update notifications to snackbar 2022-01-24 14:56:17 -03:00
andrekir
2bc12fe9d6 update play-services-location 2022-01-09 23:22:47 -03:00
andrekir
45ce83db99 clean up companion device pairing 2022-01-09 00:25:40 -03:00
andrekir
b95dcbb26e update common ui logic 2022-01-08 17:50:48 -03:00
andrekir
dd4fbc12d5 add ClassicScan button, timer & permissions check 2022-01-08 17:33:20 -03:00
andrekir
a3bd9564f5 split startScan into Setup/Start 2022-01-08 16:56:41 -03:00
andrekir
c0a5c4dd3c no permissions needed if hasCompanionDeviceApi 2022-01-08 16:43:52 -03:00
andrekir
d0614c7934 update initCommonUI 2022-01-08 16:30:06 -03:00
andrekir
bc57946aec convert changeRadioButton to fab 2022-01-08 16:18:36 -03:00
andrekir
e8999712d2 fix companion device pairing 2022-01-07 18:51:20 -03:00