1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-08-04 04:51:53 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util
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
..
.gitignore Mi2: Initial support for wear location, hr during sleep and date format #323 2016-11-13 01:44:52 +01:00
AlarmUtils.java Handle one shot alarm for Fossil watch 2022-06-12 08:50:46 +02:00
AndroidUtils.java update license headers 2021-01-10 23:38:13 +01:00
ArrayUtils.java adding FitPro bands support 2021-09-21 16:37:19 +02:00
BcdUtil.java update license headers 2021-01-10 23:38:13 +01:00
BengaliLanguageUtils.java update license headers 2021-01-10 23:38:13 +01:00
BitmapUtil.java add_rotate_watchface_button_hybridhr (#2408) 2021-10-14 11:00:37 +02:00
BondingInterface.java Improved logging in bonding and tried to recover from weirdness 2021-05-30 01:00:48 +03:00
BondingUtil.java multi-device-support (#2526) 2022-06-14 18:05:41 +02:00
CheckSums.java Change CRC16 method 2021-11-13 21:43:05 +01:00
CRC32C.java update license headers 2021-01-10 23:38:13 +01:00
CryptoUtils.java Mi Band 6: Sync alarms set on the watch like on Amazfit Bip U and others 2022-02-02 12:57:25 +01:00
DateTimeUtils.java make Activity Charts dates move as calendar months and to go to now if jumping past today 2021-04-02 16:07:36 +02:00
DeviceHelper.java Add support for Galaxy Buds Pro 2022-05-17 22:27:40 +02:00
EmojiConverter.java update license headers 2021-01-10 23:38:13 +01:00
FileUtils.java adds a 'Delete files from export directory' to Data management 2021-01-10 23:39:38 +01:00
FormatUtils.java Refactor formatting of distance strings 2021-12-30 07:55:20 +01:00
GB.java multi-device-support (#2526) 2022-06-14 18:05:41 +02:00
GBPrefs.java multi-device-support (#2526) 2022-06-14 18:05:41 +02:00
GpxParser.java add UUID to to GPX with opentracks namespace 2021-01-17 00:07:55 +01:00
ImportExportSharedPreferences.java update license headers 2021-01-10 23:38:13 +01:00
JavaExtensions.java update license headers 2021-01-10 23:38:13 +01:00
KoreanLanguageUtils.java update license headers 2021-01-10 23:38:13 +01:00
LanguageUtils.java Transliterate "ı" 2022-01-12 13:55:25 +01:00
LimitedQueue.java update license headers 2021-01-10 23:38:13 +01:00
NotificationUtils.java update license headers 2021-01-10 23:38:13 +01:00
PebbleUtils.java update license headers 2021-01-10 23:38:13 +01:00
Prefs.java update license headers 2021-01-10 23:38:13 +01:00
RtlUtils.java update license headers 2021-01-10 23:38:13 +01:00
StringUtils.java Fossil Hybrid HR: Show correct notification icons (#2251) 2021-04-20 09:55:27 +02:00
SwipeEvents.java update license headers 2021-01-10 23:38:13 +01:00
TimePreference.java update license headers 2021-01-10 23:38:13 +01:00
UriHelper.java update license headers 2021-01-10 23:38:13 +01:00
Version.java added util method to Version 2021-12-26 17:58:47 +01:00
WebViewSingleton.java update license headers 2021-01-10 23:38:13 +01:00
WidgetPreferenceStorage.java Widget and SleepAlarmWidget: modify for multidevice support 2022-05-28 14:57:01 +02:00
XTimePreference.java update license headers 2021-01-10 23:38:13 +01:00
XTimePreferenceFragment.java update license headers 2021-01-10 23:38:13 +01:00