mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-11-29 09:11:17 +01:00
The trainer-app picker now shows an external-link button next to every app that has an official site, opening it in the browser. Adds an officialUrl to SupportedApp with per-app overrides (Strappo, MyWhoosh, Rouvy, Zwift, TrainingPeaks Virtual, Biketerra, BikeControl, OpenBikeControl). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
29 lines
859 B
Dart
29 lines
859 B
Dart
import 'package:bike_control/utils/keymap/apps/supported_app.dart';
|
|
|
|
import '../keymap.dart';
|
|
|
|
/// Strappo (https://getstrappo.com) — officially supported via the open
|
|
/// OpenBikeControl protocol (network/mDNS and BLE). Button events are delivered
|
|
/// over the protocol, so Strappo needs no keyboard keymap.
|
|
class Strappo extends SupportedApp {
|
|
@override
|
|
List<(AppConnectionMethod, ConnectionSupport)> get connections => [
|
|
(AppConnectionMethod.obpMdns, ConnectionSupport.supported),
|
|
(AppConnectionMethod.obpBle, ConnectionSupport.supported),
|
|
];
|
|
|
|
@override
|
|
String? get logoAsset => 'assets/strappo.png';
|
|
|
|
@override
|
|
String? get officialUrl => 'https://getstrappo.com';
|
|
|
|
Strappo()
|
|
: super(
|
|
name: 'Strappo',
|
|
packageName: 'Strappo',
|
|
officialIntegration: true,
|
|
keymap: Keymap(keyPairs: []),
|
|
);
|
|
}
|