diff --git a/README.md b/README.md index 93634e2e0..d8c08b52d 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,7 @@ Best follow our landing page and the "Get Started" button: [bikecontrol.app](htt - REZVIVO - OpenRadlr - zwoTrainer +- Incyclist - Tacx Training - FulGaz - [OpenBikeControl](https://openbikecontrol.org) compatible apps diff --git a/assets/incyclist.png b/assets/incyclist.png new file mode 100644 index 000000000..fd553dc91 Binary files /dev/null and b/assets/incyclist.png differ diff --git a/lib/utils/keymap/apps/openbikecontrol_trainer_apps.dart b/lib/utils/keymap/apps/openbikecontrol_trainer_apps.dart index e8b68ca95..c17f98816 100644 --- a/lib/utils/keymap/apps/openbikecontrol_trainer_apps.dart +++ b/lib/utils/keymap/apps/openbikecontrol_trainer_apps.dart @@ -80,5 +80,12 @@ class OpenBikeControlTrainerApp extends SupportedApp { logo: 'zwotrainer.png', officialUrl: 'https://steffenr.github.io/zwo-trainer/', ), + OpenBikeControlTrainerApp( + name: 'Incyclist', + logo: 'incyclist.png', + officialUrl: 'https://incyclist.com', + mdns: true, + wifiTrainers: true, + ), ]; } diff --git a/pubspec.yaml b/pubspec.yaml index 122e6d732..300786bb9 100755 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -190,6 +190,7 @@ flutter: - assets/rezvivo.png - assets/openradlr.png - assets/zwotrainer.png + - assets/incyclist.png - assets/biketerra.png - assets/contours/ - assets/brand/ diff --git a/test/openbikecontrol_trainer_apps_test.dart b/test/openbikecontrol_trainer_apps_test.dart index 9c66582a3..7710a9eba 100644 --- a/test/openbikecontrol_trainer_apps_test.dart +++ b/test/openbikecontrol_trainer_apps_test.dart @@ -15,6 +15,7 @@ void main() { 'REZVIVO', 'OpenRadlr', 'zwoTrainer', + 'Incyclist', ]; SupportedApp byName(String name) => SupportedApp.supportedApps.singleWhere((app) => app.name == name); @@ -25,22 +26,22 @@ void main() { } }); - test('they connect via OpenBikeControl over Bluetooth, VoxVelo and Vieta also over the network', () { + test('they connect via OpenBikeControl over Bluetooth, VoxVelo, Vieta and Incyclist also over the network', () { for (final name in names) { final app = byName(name); expect(app.supportLevel(AppConnectionMethod.obpBle), ConnectionSupport.supported, reason: name); - final mdns = name == 'VoxVelo' || name == 'Vieta'; + final mdns = name == 'VoxVelo' || name == 'Vieta' || name == 'Incyclist'; expect(app.supportLevel(AppConnectionMethod.obpMdns), mdns ? ConnectionSupport.supported : isNull, reason: name); // OBC delivers button events over the protocol, so there is no keyboard map. expect(app.keymap.keyPairs, isEmpty, reason: name); } }); - test('only Vieta finds trainers over Wi-Fi as well', () { + test('only Vieta and Incyclist find trainers over Wi-Fi as well', () { for (final name in names) { expect( byName(name).virtualShiftingTransports, - name == 'Vieta' + name == 'Vieta' || name == 'Incyclist' ? {TrainerConnectionType.bluetooth, TrainerConnectionType.wifi} : {TrainerConnectionType.bluetooth}, reason: name,