mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-11-28 16:58:41 +01:00
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>