remove media key detection due to Apple restrictions

This commit is contained in:
Jonas Bark
2025-11-25 19:26:39 +00:00
parent 28663f5cdf
commit d941135fff
6 changed files with 6 additions and 7 deletions

View File

@@ -260,7 +260,7 @@ jobs:
name: Releases
path: |
screenshots/device-GitHub-600x900.png
build/BikeControl.storeassets.zip
build/BikeControl.screenshots.zip
#10 Extract Version
- name: Extract version from pubspec.yaml
@@ -275,7 +275,7 @@ jobs:
if: inputs.build_github
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/flutter-apk/BikeControl.android.apk,build/macos/Build/Products/Release/BikeControl.macos.zip,build/BikeControl.screenshots.zip"
artifacts: "build/app/outputs/flutter-apk/BikeControl.android.apk,build/macos/Build/Products/Release/BikeControl.macos.zip,build/BikeControl.screenshots.zip,screenshots/device-GitHub-600x900.png"
allowUpdates: true
prerelease: true
bodyFile: /tmp/release_body.md

View File

@@ -38,7 +38,6 @@
<array>
<string>bluetooth-peripheral</string>
<string>bluetooth-central</string>
<string>audio</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>

View File

@@ -312,7 +312,7 @@ class _PairWidgetState extends State<_PairWidget> {
Text(
isAdvertisingPeripheral
? 'Stop Pairing process'
: 'Start connecting to ${settings.getLastTarget()?.name ?? 'remote'} device',
: 'Start connecting to\n${settings.getLastTarget()?.title ?? 'remote'} device',
),
Text(
'Pairing allows full customizability,\nbut may not work on all devices.',

View File

@@ -59,7 +59,7 @@ class _ScanWidgetState extends State<ScanWidget> {
Text(
'Scanning for devices... Make sure they are powered on and in range and not connected to another device.',
),
if (!kIsWeb && (Platform.isMacOS || Platform.isIOS || Platform.isWindows))
if (!kIsWeb && (Platform.isMacOS || Platform.isWindows))
ValueListenableBuilder(
valueListenable: connection.isMediaKeyDetectionEnabled,
builder: (context, value, child) {

View File

@@ -71,7 +71,7 @@ class _StatusWidgetState extends State<StatusWidget> {
color: zwiftEmulator.isConnected.value ? Colors.green : Colors.red,
text: 'Zwift Emulation ${zwiftEmulator.isConnected.value ? "connected" : "not connected"}',
),
if (!isRemote && !isZwift && !screenshotMode)
if (!isRemote && !isZwift && !screenshotMode && settings.getLastTarget() != Target.thisDevice)
_Status(
color: Colors.red,
text: 'Not connected to a remote device',

View File

@@ -1,7 +1,7 @@
name: swift_control
description: "BikeControl - Control your virtual riding"
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 3.6.0+43
version: 3.6.0+44
environment:
sdk: ^3.9.0