Commit Graph

26 Commits

Author SHA1 Message Date
David Szendrei
b408846cb0 Add Linux desktop support
- keypress_simulator_linux: inject keyboard, mouse and media keys through
  /dev/uinput virtual devices (works on X11 and Wayland)
- pass the key's USB HID usage over the method channel so Linux can map it
  to evdev codes; isAccessAllowed checks /dev/uinput write access on Linux
- enable the Linux paths: scan requirements, local control, onboarding,
  touch positions via screen_retriever, "Run Command"
- notifications: add Linux init settings, skip launch details there
- prop_public: stub the APIs main now uses so a clone without the private
  submodule builds again

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 13:31:10 +01:00
Jonas Acker
4ae22c7a37 Paste screenshots and copied files into the support chat
Cmd+V (Ctrl+V off Apple) in the support composer now stages a copied
file or a clipboard image as the attachment; plain text still pastes
into the field. Text wins over an image because office apps put a
rendered picture next to copied text. Windows clipboard images arrive
as BMP and are re-encoded to PNG to pass the upload allowlist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 10:16:31 +01:00
Jonas Bark
b201cb3e53 Generate localized store screenshots (golden_screenshot 11)
- Bump golden_screenshot 8.2.0 -> ^11.0.1 (drops the Yaru dependency, hence the
  linux plugin-registrant change).
- screenshot_test.dart now renders each scene for 6 locales (en/de/es/fr/it/pl)
  via a shoot() helper, writing screenshots/<locale>/<scene>-<device>.png.
  Marketing titles are translated per locale (de/es/fr/it/pl are drafts).
  - main.dart: screenshotLocale global drives the app locale in screenshot mode
    (was hardcoded to English).
  - v11 only loads fonts found in the rendered tree, so loadAssets() runs after
    the first pump.
- Virtual Shifting scene shows the gear UI instead of the "trainer doesn't
  advertise FTMS" warning: added ProxyDevice.debugAttachFitnessBike (test seam,
  no server side-effects) and hide the MyWhoosh gearing hint in screenshot mode.
- prepare_store_screenshots.sh maps each store locale from its language folder
  (de-DE <- screenshots/de, ...).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 11:22:56 +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
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
ada54e05eb create screenshot on Windows + macOS 2026-02-25 20:57:12 +01:00
Jonas Bark
565d14c3c0 group buttons by device, add new unlock mechanism 2026-01-23 15:27:32 +01:00
Jonas Bark
ffdc64741c version++ 2026-01-22 18:38:50 +01:00
Jonas Bark
313c8d6f13 Windows & macOS: allow configuration of volume keys on Bluetooth HID devices 2026-01-22 14:29:57 +01:00
Jonas Bark
72e49fdf2b Windows: fix media key detection 2026-01-17 12:11:14 +01:00
Jonas Bark
6f3142c913 fix detection for hardware buttons when BikeControl is in foreground, change notification icon 2026-01-16 12:38:10 +01:00
Jonas Bark
27e627d929 fix 2025-12-19 10:13:01 +01:00
Jonas Bark
8c4f40eba5 version++ 2025-12-19 10:09:06 +01:00
Jonas Bark
b1caf0d762 iap adjustment 2025-12-15 08:37:56 +01:00
Jonas Bark
3d641c9d83 iap adjustment 2025-12-14 21:35:06 +01:00
Jonas Bark
b69d41ecb5 in app purchase implementation on macOS / iOS 2025-12-14 19:32:23 +01:00
Jonas Bark
c4184a5bed screenshot adjustments 2025-12-01 18:14:16 +00:00
Jonas Bark
41828b3469 detect media keys on macOS / iOS #1 2025-11-03 08:58:16 +01:00
Jonas Bark
fb43ddf024 initial support for gamepads 2025-10-26 10:21:59 +01:00
Jonas Bark
182a110dda Revert "try flutter_ble_peripheral"
This reverts commit b9198f8b8d.
2025-10-06 19:28:43 +02:00
Jonas Bark
b9198f8b8d try flutter_ble_peripheral 2025-10-06 19:27:52 +02:00
Jonas Bark
a3883ab7dd try bluetooth_low_energy 2025-10-06 18:46:46 +02:00
Jonas Bark
3d5c0770a7 Desktop: add mouse click support 2025-04-06 13:30:59 +02:00
Jonas Bark
0bb0b7f74d Android: allow user to adjust touch placements 2025-03-30 14:26:51 +02:00
Jonas Bark
50fda1d9eb control media (Android only for now), add menu 2025-03-28 15:24:25 +01:00
Jonas Bark
793ed76100 initial commit 2025-03-26 15:41:06 +01:00