1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-03 11:33:19 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge
dakhnod 4a8523f790 multi-device-support (#2526)
this PR aims to add device for multiple connected devices at once.

A lot of stuff already works, some things need to be done:

- [x] change DeviceCommunicationService to hold multiple devices and supports
- [x] implement connect / disconnect logic
- [x] widgets, not really suited for multiple devices, so far
- [x] change the notification to show multiple devices
- [ ] change GBDeviceService#onFindDevice and similar API functions to target individual devices, not all connected.
- [x] move auto-reconnect setting to device settings
- [x] fix music event crash
- [x] work out behaviour when pressing "connect" from notification
- [ ] handle service crashes
- [ ] suit coordinator methods for multiple devices of same kind
- [x] change ACL_CONNECTED receiver to connect to devices that are not currently registered in DeviceCommunicationService
- [ ] adjust after-boot auto-connection logic
- [ ] fix hanging device support. Device says disconnected, GB says connected
- [x] firmware updater doesn't work

My attempt to make onFindDevice work was to change the arguments to ```EventHandler#onFindDevice(GBDevice device, boolean start)```.
The Problem is that this forces the device-specific implementations to also accept GBDevice as an argument.

Co-authored-by: Daniel Dakhno <dakhnod@gmail.com>
Co-authored-by: Andreas Shimokawa <shimokawa@fsfe.org>
Co-authored-by: dakhnod <dakhnod@gmail.com>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2526
Co-authored-by: dakhnod <dakhnod@noreply.codeberg.org>
Co-committed-by: dakhnod <dakhnod@noreply.codeberg.org>
2022-06-14 18:05:41 +02:00
..
activities multi-device-support (#2526) 2022-06-14 18:05:41 +02:00
adapter multi-device-support (#2526) 2022-06-14 18:05:41 +02:00
contentprovider update license headers 2021-01-10 23:38:13 +01:00
database Mi Band 5: Add support for World Clocks 2022-05-10 13:59:25 +02:00
deviceevents Roidmi: Slight code cleanup 2021-12-26 18:27:01 +01:00
devices multi-device-support (#2526) 2022-06-14 18:05:41 +02:00
entities add missing AbstractFitProActivitySample from entities (excluded by gitignore) 2021-09-24 10:00:36 +02:00
export add UUID to to GPX with opentracks namespace 2021-01-17 00:07:55 +01:00
externalevents multi-device-support (#2526) 2022-06-14 18:05:41 +02:00
impl multi-device-support (#2526) 2022-06-14 18:05:41 +02:00
model multi-device-support (#2526) 2022-06-14 18:05:41 +02:00
service multi-device-support (#2526) 2022-06-14 18:05:41 +02:00
util multi-device-support (#2526) 2022-06-14 18:05:41 +02:00
GBApplication.java Move OpenTracks external events to dedicated package 2022-05-30 13:17:26 +02:00
GBEnvironment.java Update license headers 2020-01-09 10:44:32 +01:00
GBException.java update license headers 2021-01-10 23:38:13 +01:00
LockHandler.java Update license headers 2020-01-09 10:44:32 +01:00
Logging.java update license headers 2021-01-10 23:38:13 +01:00
LoggingExceptionHandler.java update license headers 2021-01-10 23:38:13 +01:00
SleepAlarmWidget.java Widget and SleepAlarmWidget: modify for multidevice support 2022-05-28 14:57:01 +02:00
Widget.java Widget: sleep rendering update 2022-06-12 08:13:12 +02:00