Commit Graph

27 Commits

Author SHA1 Message Date
Jonas Bark
786621a11b Localize TrainerConnection titles (re-evaluate per locale)
The connection titles ("Connect using Bluetooth", "Connect directly over
Network", "Connect using MyWhoosh Link", ...) were captured once at object
construction in English, so they didn't follow the active locale. Back the
title with a builder (String Function()) and expose it via a getter so it
re-localizes — fixing the English titles in the localized store screenshots.
Updated all 10 subclasses and the fake connection in the bridge-transport test.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 11:47:43 +02:00
Jonas Bark
df18e4ff2f advertisement fix 2026-06-10 11:09:35 +02:00
Jonas Bark
a60a1384e3 Merge origin/universal-ble-2-peripheral: universal_ble 2.0.0 peripheral mode
Brings the BLE peripheral-mode migration to universal_ble 2.0.0 into the
WiFi DirCon trainer-discovery branch and bumps universal_ble to the latest
fork commit (ref: changes, 2.0.0).

Conflict resolutions:
- prop submodule: merged the universal_ble 2.0 transporter migration with
  the WiFi DirCon TrainerTransport refactor; kept the '0x' short-UUID
  normalisation on startAdvertising. Updated BleCharacteristic call sites
  to the new 3-arg (uuid, properties, descriptors) constructor.
- obc_ble_emulator.dart: took the PeripheralServer / universal_ble 2.0
  write-handler migration; kept the richer Error(button:) context on
  sendAction (using _currentDeviceId, the migrated connection tracker).
- unlock.dart: kept the main.dart import.
- pubspec.yaml: kept version 6.0.0+135; took ref: changes for universal_ble.

Pre-existing prop test failures (composite/dircon/fitness serviceUUIDs) are
unchanged by this merge — they fail identically on the pre-merge branch.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 09:19:58 +02:00
Jonas Bark
a68b68a1b4 fix button mapping popup 2026-06-01 11:53:55 +02:00
Jonas Bark
29741e520f migrate peripheral mode to universal_ble 2.0.0
Drop bluetooth_low_energy. Move OBC BLE emulator, Zwift emulator, and
the remote mouse / keyboard pairing flows onto a new PeripheralServer
wrapper around UniversalBlePeripheral that routes per-characteristic
read/write handlers, so multiple peripheral instances coexist without
clobbering universal_ble's process-wide handlers.

Also: onValueChange callback gains a timestamp param (v1.0.0 breaking
change), PeripheralManager().showAppSettings() → openAppSettings(),
UUID.short(0x12) → literal UUID, and prop submodule bumped to the
matching universal_ble peripheral rewrite.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-18 09:28:39 +02:00
Jonas Bark
642fc754a1 UI adjustments, BLE advertisement fix 2026-04-26 09:14:00 +02:00
Jonas Bark
c47667af94 UI adjustments, BLE advertisement fix 2026-04-26 09:14:00 +02:00
Jonas Bark
cfcdb0203f UI adjustments 2026-03-25 11:28:03 +01:00
Jonas Bark
8f3b090b3a UI adjustments 2026-03-25 11:28:03 +01:00
Jonas Bark
922c785df1 new ui #4 2026-03-10 19:04:51 +01:00
Jonas Bark
30037e1a83 new ui #4 2026-03-10 19:04:51 +01:00
Jonas Bark
5393afd204 cleanup 2026-02-05 14:30:15 +01:00
Jonas Bark
a2a505b9d3 cleanup 2026-02-05 14:30:15 +01:00
Jonas Bark
e761981680 fix #246 2026-02-05 14:23:50 +01:00
Jonas Bark
0ddfb00014 fix #246 2026-02-05 14:23:50 +01:00
Jonas Bark
8997b54a9a group buttons by device, add new unlock mechanism 2026-01-23 15:27:32 +01:00
Jonas Bark
565d14c3c0 group buttons by device, add new unlock mechanism 2026-01-23 15:27:32 +01:00
Jonas Bark
d3bea2d361 move button simulator page button 2025-12-18 08:33:04 +01:00
Jonas Bark
7319632334 move button simulator page button 2025-12-18 08:33:04 +01:00
Jonas Bark
5a67f2ee76 remove remains of swift_control 2025-12-14 16:22:07 +01:00
Jonas Bark
2528342a7b remove remains of swift_control 2025-12-14 16:22:07 +01:00
Jonas Bark
cdd4a69716 control your trainer manually without requiring a controller - just like a Companion app 2025-12-10 18:57:08 +01:00
Jonas Bark
7b83642cf1 control your trainer manually without requiring a controller - just like a Companion app 2025-12-10 18:57:08 +01:00
Jonas Bark
e723602ebd fix pairing permission issues 2025-12-07 11:03:21 +01:00
Jonas Bark
38f4bceba0 fix pairing permission issues 2025-12-07 11:03:21 +01:00
Jonas Bark
f9e8859a83 refactoring 2025-12-06 11:46:18 +01:00
Jonas Bark
e58721d0ee refactoring 2025-12-06 11:46:18 +01:00