Files
swiftcontrol/lib/utils
Jonas Acker 03e92ab1f9 feat(settings): keep device-keyed settings across lower-case BLE ids
universal_ble 3 emits BLE device ids lower-case; older builds stored
them as the platform reported them (upper-case MACs on Android,
upper-case UUIDs on iOS/macOS).

- One-time, versioned migration (ble_device_id_migration_version = 1),
  run in Settings.init before anything reads a device-keyed setting:
  rewrites address-shaped ids inside per-device keys (sensor auto-connect,
  L-TWOO, SRAM, Shimano, Zwift unlock state, nameless-trainer keys) and
  inside ignored devices, sensor selections, remembered devices, keymap
  button deviceIds and shifting configs. Non-address ids (WiFi, emulated,
  gamepad, HID, web, install ids) are left alone.
- Read paths normalise too, so data synced or imported from installs on
  older builds still matches live devices.
- The bridge's advertised serial number stays seeded with the id in its
  previous case, so trainer apps keep recognising a paired bridge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 19:47:47 +02:00
..
2026-08-23 09:08:59 +02:00
2026-07-10 13:01:38 +02:00
2026-09-29 12:21:49 +02:00
2026-03-12 10:23:21 +01:00
2026-03-08 15:03:36 +01:00
2025-12-07 12:05:52 +01:00
2026-05-05 14:15:27 +02:00
2026-03-06 18:18:23 +01:00