mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-11-30 01:34:57 +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>
25 lines
690 B
Dart
25 lines
690 B
Dart
import 'package:bike_control/utils/keymap/apps/supported_app.dart';
|
|
|
|
import '../keymap.dart';
|
|
|
|
/// BikeControl itself as a selectable trainer app. When active, controller
|
|
/// buttons drive in-app features (e.g. the Mini Workout on the smart-trainer
|
|
/// details page) rather than being forwarded to an external app.
|
|
class BikeControl extends SupportedApp {
|
|
@override
|
|
String? get logoAsset => 'icon.png';
|
|
|
|
@override
|
|
String? get officialUrl => 'https://bikecontrol.app';
|
|
|
|
BikeControl()
|
|
: super(
|
|
name: 'BikeControl',
|
|
packageName: 'de.jonasbark.swiftcontrol',
|
|
officialIntegration: true,
|
|
keymap: Keymap(
|
|
keyPairs: [],
|
|
),
|
|
);
|
|
}
|