mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-12-04 12:42:18 +01:00
Adds ProxyDevice.defaultRetrofitMode that returns RetrofitMode.bluetooth or RetrofitMode.wifi when the device advertises FTMS and the user has a matching Trainer Connection enabled (resolved via preferredBridgeTransport). Power-meter-only and HRM-only devices, plus smart trainers with no enabled Bridge transport, fall back to RetrofitMode.proxy. Threads the device default through Settings.getRetrofitMode as a `fallback` parameter so the auto-connect path, the tap-to-connect handler in ProxyPage, and the picker's initState all surface VS first. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>