mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-02-18 00:17:40 +01:00
fix compatibility checks on this device on iOS devices
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:dartx/dartx.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:swift_control/utils/keymap/apps/supported_app.dart';
|
||||
import 'package:swift_control/utils/requirements/multi.dart';
|
||||
@@ -11,7 +14,9 @@ class MyWhoosh extends SupportedApp {
|
||||
: super(
|
||||
name: 'MyWhoosh',
|
||||
packageName: "com.mywhoosh.whooshgame",
|
||||
compatibleTargets: Target.values,
|
||||
compatibleTargets: !kIsWeb && Platform.isIOS
|
||||
? Target.values.filterNot((e) => e == Target.thisDevice).toList()
|
||||
: Target.values,
|
||||
supportsZwiftEmulation: false,
|
||||
keymap: Keymap(
|
||||
keyPairs: [
|
||||
|
||||
@@ -15,7 +15,9 @@ class Rouvy extends SupportedApp {
|
||||
: super(
|
||||
name: 'Rouvy',
|
||||
packageName: "eu.virtualtraining.rouvy.android",
|
||||
compatibleTargets: Target.values,
|
||||
compatibleTargets: !kIsWeb && Platform.isIOS
|
||||
? Target.values.filterNot((e) => e == Target.thisDevice).toList()
|
||||
: Target.values,
|
||||
supportsZwiftEmulation: !kIsWeb && Platform.isAndroid,
|
||||
keymap: Keymap(
|
||||
keyPairs: [
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:dartx/dartx.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:swift_control/bluetooth/devices/elite/elite_square.dart';
|
||||
import 'package:swift_control/bluetooth/devices/zwift/constants.dart';
|
||||
@@ -13,7 +16,9 @@ class TrainingPeaks extends SupportedApp {
|
||||
: super(
|
||||
name: 'TrainingPeaks Virtual / IndieVelo',
|
||||
packageName: "com.indieVelo.client",
|
||||
compatibleTargets: Target.values,
|
||||
compatibleTargets: !kIsWeb && Platform.isIOS
|
||||
? Target.values.filterNot((e) => e == Target.thisDevice).toList()
|
||||
: Target.values,
|
||||
supportsZwiftEmulation: false,
|
||||
keymap: Keymap(
|
||||
keyPairs: [
|
||||
|
||||
@@ -282,6 +282,7 @@ class TargetRequirement extends PlatformRequirement {
|
||||
value: target,
|
||||
label: target.title,
|
||||
leadingIcon: Icon(target.icon),
|
||||
enabled: target.isCompatible,
|
||||
labelWidget: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
child: Column(
|
||||
|
||||
Reference in New Issue
Block a user