Commit graph

51 commits

Author SHA1 Message Date
Andre K
271124dc9c
refactor: implement CompatExtensions (#641)
updates deprecated methods, classes, and flags introduced in Android SDK 33, while ensuring compatibility with previous Android versions
2023-05-30 18:30:46 -03:00
andrekir
9869a9208b refactor: improve service admin channel index logic 2023-05-21 19:46:40 -03:00
andrekir
8151aceea4 fix: ensure proper channel updates to ChannelSetRepository 2023-05-21 06:04:53 -03:00
Andre K
a2388d1d12
refactor: combine config data stores into RadioConfigRepository (#636) 2023-05-20 11:42:15 -03:00
andrekir
7eeb0b4d6f fix: revert to ChannelSet addSettings method without index
fixes throwing Non-fatal Exception: java.lang.IndexOutOfBoundsException: Index: N, Size: n
2023-05-13 17:51:56 -03:00
andrekir
41d0315b63 fix: handle deleted channels in ChannelSet DataStore
adds `removeSettings` method to delete channels with `Role.DISABLED`
2023-05-06 08:08:17 -03:00
Andre K
e5a860cb36
feat: add channel editor (#627) 2023-04-29 07:14:30 -03:00
andrekir
28b905db23 fix: improve null-safety handling in filter logic
to avoid NullPointerException: it.name must not be null at com.geeksville.mesh.repository.bluetooth.BluetoothRepository$createBondedDevicesFlow$2.invokeSuspend(BluetoothRepository.kt:96)
2023-04-13 17:11:40 -03:00
andrekir
804d4f0e27 feat: update devices list from repositories 2023-04-06 21:04:03 -03:00
andrekir
2d0d7b3986 fix: update CompanionDeviceManager associate() to Activity context 2023-04-06 19:10:45 -03:00
andrekir
057f94e423 feat: collect bondedDevices flow in BTScanModel 2023-03-27 15:27:26 -03:00
andrekir
054d2330a4 fix: add @Singleton annotation to RadioInterfaceService
- ensure only one RadioInterfaceService instance is created and used throughout the app
- fix multiple startInterface() calls when Bluetooth is enabled
2023-03-03 11:03:43 -03:00
andrekir
3c1629ffbd feat: use FusedLocationClient for google flavor 2023-01-31 18:17:13 -03:00
andrekir
7086444917 fix: set socket to null after close 2023-01-10 17:36:46 -03:00
andrekir
807337ca9b add new configs 2023-01-03 21:45:41 -03:00
andrekir
4646d228bc remove debug message 2022-12-23 22:33:05 -03:00
Andre K
d538c2afff
list devices from adapter.bondedDevices (#536) 2022-12-10 00:16:14 -03:00
Andre K
689e7e7eca
add ModuleConfig settings (#526) 2022-11-22 22:01:37 -03:00
andrekir
00de511907 update targetSdkVersion to 31 2022-11-04 18:31:18 -03:00
andrekir
ce140383bb install channels from wantConfig 2022-10-16 19:19:03 -03:00
andrekir
868a0f7bd3 reset invalidVersion just in case 2022-10-13 00:02:00 -03:00
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