diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 84c0a472..2d6edbc9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -169,7 +169,7 @@ jobs: if: inputs.build_github run: | flutter test test/screenshot_test.dart - zip -r SwiftControl.storeassets.zip screenshots + zip -r BikeControl.storeassets.zip screenshots echo "Screenshots generated successfully" - name: 🚀 Shorebird Release iOS @@ -205,8 +205,8 @@ jobs: APPSTORE_API_KEY: ${{ secrets.APPSTORE_API_KEY }} APPSTORE_API_ISSUER_ID: ${{ secrets.APPSTORE_API_ISSUER_ID }} run: | - productbuild --component "build/macos/Build/Products/Release/SwiftControl.app" /Applications "SwiftControl.pkg" --sign "3rd Party Mac Developer Installer: JONAS TASSILO BARK (UZRHKPVWN9)"; - xcrun altool --upload-app -f SwiftControl.pkg -t osx --apiKey "$APPSTORE_API_KEY" --apiIssuer "$APPSTORE_API_ISSUER_ID"; + productbuild --component "build/macos/Build/Products/Release/BikeControl.app" /Applications "BikeControl.pkg" --sign "3rd Party Mac Developer Installer: JONAS TASSILO BARK (UZRHKPVWN9)"; + xcrun altool --upload-app -f BikeControl.pkg -t osx --apiKey "$APPSTORE_API_KEY" --apiIssuer "$APPSTORE_API_ISSUER_ID"; - name: Upload to iOS App Store if: inputs.build_ios @@ -223,7 +223,7 @@ jobs: - name: Code Signing of macOS app if: inputs.build_mac && inputs.build_github - run: /usr/bin/codesign --deep --force -s "$DEVELOPER_ID_APPLICATION_SIGNING_IDENTITY" --entitlements ../../../../../macos/Runner/Release.entitlements --options runtime SwiftControl.app -v + run: /usr/bin/codesign --deep --force -s "$DEVELOPER_ID_APPLICATION_SIGNING_IDENTITY" --entitlements ../../../../../macos/Runner/Release.entitlements --options runtime BikeControl.app -v working-directory: build/macos/Build/Products/Release env: DEVELOPER_ID_APPLICATION_SIGNING_IDENTITY: ${{ secrets.DEVELOPER_ID_APPLICATION_SIGNING_IDENTITY }} @@ -232,7 +232,7 @@ jobs: if: inputs.build_mac && inputs.build_github run: | cd build/macos/Build/Products/Release/ - zip -r SwiftControl.macos.zip SwiftControl.app/ + zip -r BikeControl.macos.zip BikeControl.app/ - name: Upload Android Artifacts if: inputs.build_android && inputs.build_github @@ -241,7 +241,7 @@ jobs: overwrite: true name: Releases path: | - build/app/outputs/flutter-apk/SwiftControl.android.apk + build/app/outputs/flutter-apk/BikeControl.android.apk - name: Upload macOS Artifacts if: inputs.build_mac && inputs.build_github @@ -250,7 +250,7 @@ jobs: overwrite: true name: Releases path: | - build/macos/Build/Products/Release/SwiftControl.macos.zip + build/macos/Build/Products/Release/BikeControl.macos.zip - name: Upload Screenshots Artifacts if: inputs.build_github @@ -260,7 +260,7 @@ jobs: name: Releases path: | screenshots/device-GitHub-600x900.png - build/SwiftControl.storeassets.zip + build/BikeControl.storeassets.zip #10 Extract Version - name: Extract version from pubspec.yaml @@ -335,7 +335,7 @@ jobs: Write-Warning "$dll not found in $source" } } - Compress-Archive -Path "build/windows/x64/runner/Release/*" -DestinationPath "build/windows/x64/runner/Release/SwiftControl.windows.zip" + Compress-Archive -Path "build/windows/x64/runner/Release/*" -DestinationPath "build/windows/x64/runner/Release/BikeControl.windows.zip" - uses: microsoft/setup-msstore-cli@v1 if: false @@ -357,10 +357,10 @@ jobs: if: false run: msstore publish -v "build/windows/x64/runner/Release/" - - name: Rename swift_control.msix to SwiftControl.windows.msix + - name: Rename swift_control.msix to BikeControl.windows.msix shell: pwsh run: | - Rename-Item -Path "build/windows/x64/runner/Release/swift_control.msix" -NewName "SwiftControl.windows.msix" + Rename-Item -Path "build/windows/x64/runner/Release/swift_control.msix" -NewName "BikeControl.windows.msix" - name: Upload Artifacts uses: actions/upload-artifact@v4 @@ -368,8 +368,8 @@ jobs: overwrite: true name: Releases path: | - build/windows/x64/runner/Release/SwiftControl.windows.zip - build/windows/x64/runner/Release/SwiftControl.windows.msix + build/windows/x64/runner/Release/BikeControl.windows.zip + build/windows/x64/runner/Release/BikeControl.windows.msix - name: Update Release uses: ncipollo/release-action@v1 diff --git a/.github/workflows/patch.yml b/.github/workflows/patch.yml index 29658ac1..b0070f92 100644 --- a/.github/workflows/patch.yml +++ b/.github/workflows/patch.yml @@ -115,8 +115,8 @@ jobs: version=$(grep '^version: ' pubspec.yaml | cut -d ' ' -f 2 | tr -d '\r'); echo "VERSION=$version" >> $GITHUB_ENV; cd build/macos/Build/Products/Release/; - /usr/bin/codesign --deep --force -s "$DEVELOPER_ID_APPLICATION_SIGNING_IDENTITY" --entitlements ../../../../../macos/Runner/Release.entitlements --options runtime SwiftControl.app -v; - zip -r SwiftControl.macos.zip SwiftControl.app/; + /usr/bin/codesign --deep --force -s "$DEVELOPER_ID_APPLICATION_SIGNING_IDENTITY" --entitlements ../../../../../macos/Runner/Release.entitlements --options runtime BikeControl.app -v; + zip -r BikeControl.macos.zip BikeControl.app/; #9 Upload Artifacts - name: Upload Artifacts @@ -126,7 +126,7 @@ jobs: overwrite: true name: Releases path: | - build/macos/Build/Products/Release/SwiftControl.macos.zip + build/macos/Build/Products/Release/BikeControl.macos.zip - name: Generate release body if: false @@ -140,7 +140,7 @@ jobs: uses: ncipollo/release-action@v1 with: allowUpdates: true - artifacts: "build/macos/Build/Products/Release/SwiftControl.macos.zip" + artifacts: "build/macos/Build/Products/Release/BikeControl.macos.zip" bodyFile: /tmp/release_body.md prerelease: true tag: v${{ env.VERSION }} diff --git a/CHANGELOG.md b/CHANGELOG.md index dd156ab7..9bcd2e1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ -### 3.5.1 (unreleased) +### 3.6.0 (23-11-2025) + +SwiftControl is now called BikeControl! + **Features:** - show a list of predefined keymaps for the selected trainer app when using a custom keymap diff --git a/README.md b/README.md index d165dbb8..5dd5edc9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# BikeControl +# BikeControl (formerly SwiftControl) BikeControl Logo @@ -18,7 +18,7 @@ https://github.com/user-attachments/assets/1f81b674-1628-4763-ad66-5f3ed7a3f159 ## Downloads -Best follow our landing page and the "Get Started" button: [swiftcontrol.app](https://swiftcontrol.app/) to understand on which platform you want to run BikeControl. +Best follow our landing page and the "Get Started" button: [bikecontrol.app](https://swiftcontrol.app/) to understand on which platform you want to run BikeControl. GetItOnGooglePlay_Badge_Web_color_English diff --git a/lib/pages/device.dart b/lib/pages/device.dart index 4ec64881..20d2cfd3 100644 --- a/lib/pages/device.dart +++ b/lib/pages/device.dart @@ -25,6 +25,7 @@ import 'package:swift_control/widgets/title.dart'; import 'package:swift_control/widgets/warning.dart'; import 'package:universal_ble/universal_ble.dart'; import 'package:url_launcher/url_launcher.dart'; +import 'package:url_launcher/url_launcher_string.dart'; import 'package:wakelock_plus/wakelock_plus.dart'; import '../bluetooth/devices/base_device.dart'; @@ -49,6 +50,7 @@ class _DevicePageState extends State with WidgetsBindingObserver { final _snackBarMessengerKey = GlobalKey(); bool _showAutoRotationWarning = false; bool _showMiuiWarning = false; + bool _showNameChangeWarning = false; StreamSubscription? _autoRotateStream; @override @@ -59,6 +61,7 @@ class _DevicePageState extends State with WidgetsBindingObserver { if (!screenshotMode) { WakelockPlus.enable(); } + _showNameChangeWarning = !settings.knowsAboutNameChange(); WidgetsBinding.instance.addObserver(this); WidgetsBinding.instance.addPostFrameCallback((_) { @@ -221,6 +224,22 @@ class _DevicePageState extends State with WidgetsBindingObserver { child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ + if (_showNameChangeWarning) + Warning( + important: false, + children: [ + Text( + 'SwiftControl is now BikeControl! It is now part of the OpenBikeControl project, advocating for open standards in smart bike trainers - and building affordable hardware controllers!', + ), + SizedBox(height: 8), + TextButton( + onPressed: () { + launchUrlString('https://openbikecontrol.org'); + }, + child: Text('More information'), + ), + ], + ), if (_showAutoRotationWarning) Warning( children: [ diff --git a/lib/utils/settings/settings.dart b/lib/utils/settings/settings.dart index de9b9383..c98cf2fa 100644 --- a/lib/utils/settings/settings.dart +++ b/lib/utils/settings/settings.dart @@ -71,6 +71,12 @@ class Settings { return SupportedApp.supportedApps.firstOrNullWhere((e) => e.name == appName); } + bool knowsAboutNameChange() { + final knows = prefs.getBool('name_change') == true; + prefs.setBool('name_change', true); + return knows; + } + Future setKeyMap(SupportedApp app) async { if (app is CustomApp) { await prefs.setStringList('customapp_${app.profileName}', app.encodeKeymap()); diff --git a/lib/widgets/menu.dart b/lib/widgets/menu.dart index 7be477e8..acab1e7a 100644 --- a/lib/widgets/menu.dart +++ b/lib/widgets/menu.dart @@ -95,7 +95,7 @@ List buildMenuButtons() { final isFromStore = (Platform.isAndroid ? isFromPlayStore == true : Platform.isIOS); final suffix = isFromStore ? '' : '-sw'; - String email = Uri.encodeComponent('jonas$suffix@swiftcontrol.app'); + String email = Uri.encodeComponent('jonas$suffix@bikecontrol.app'); String subject = Uri.encodeComponent("Help requested for BikeControl v${packageInfoValue?.version}"); String body = Uri.encodeComponent(""" diff --git a/lib/widgets/warning.dart b/lib/widgets/warning.dart index 7afa5556..1e91ad9c 100644 --- a/lib/widgets/warning.dart +++ b/lib/widgets/warning.dart @@ -1,8 +1,9 @@ import 'package:flutter/material.dart'; class Warning extends StatelessWidget { + final bool important; final List children; - const Warning({super.key, required this.children}); + const Warning({super.key, required this.children, this.important = true}); @override Widget build(BuildContext context) { @@ -10,7 +11,9 @@ class Warning extends StatelessWidget { margin: EdgeInsets.only(bottom: 6), width: double.infinity, decoration: BoxDecoration( - color: Theme.of(context).colorScheme.errorContainer, + color: important + ? Theme.of(context).colorScheme.errorContainer + : Theme.of(context).colorScheme.primaryContainer, borderRadius: BorderRadius.circular(8), ), padding: const EdgeInsets.all(12), diff --git a/macos/Runner.xcodeproj/project.pbxproj b/macos/Runner.xcodeproj/project.pbxproj index dc1d2a4e..4aec9f87 100755 --- a/macos/Runner.xcodeproj/project.pbxproj +++ b/macos/Runner.xcodeproj/project.pbxproj @@ -67,7 +67,7 @@ 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; - 33CC10ED2044A3C60003C045 /* SwiftControl.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftControl.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 33CC10ED2044A3C60003C045 /* BikeControl.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BikeControl.app; sourceTree = BUILT_PRODUCTS_DIR; }; 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; @@ -157,7 +157,7 @@ 33CC10EE2044A3C60003C045 /* Products */ = { isa = PBXGroup; children = ( - 33CC10ED2044A3C60003C045 /* SwiftControl.app */, + 33CC10ED2044A3C60003C045 /* BikeControl.app */, 331C80D5294CF71000263BE5 /* RunnerTests.xctest */, ); name = Products; @@ -248,7 +248,7 @@ ); name = Runner; productName = Runner; - productReference = 33CC10ED2044A3C60003C045 /* SwiftControl.app */; + productReference = 33CC10ED2044A3C60003C045 /* BikeControl.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ @@ -579,13 +579,14 @@ "DEVELOPMENT_TEAM[sdk=macosx*]" = UZRHKPVWN9; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = Runner/Info.plist; - INFOPLIST_KEY_CFBundleDisplayName = SwiftControl; + INFOPLIST_KEY_CFBundleDisplayName = BikeControl; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.healthcare-fitness"; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", ); PRODUCT_BUNDLE_IDENTIFIER = de.jonasbark.swiftcontrol.darwin; + PRODUCT_NAME = BikeControl; PROVISIONING_PROFILE_SPECIFIER = ""; "PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "mac app store"; SWIFT_VERSION = 5.0; @@ -719,13 +720,14 @@ DEVELOPMENT_TEAM = UZRHKPVWN9; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = Runner/Info.plist; - INFOPLIST_KEY_CFBundleDisplayName = SwiftControl; + INFOPLIST_KEY_CFBundleDisplayName = BikeControl; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.healthcare-fitness"; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", ); PRODUCT_BUNDLE_IDENTIFIER = de.jonasbark.swiftcontrol.darwin; + PRODUCT_NAME = BikeControl; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; @@ -748,13 +750,14 @@ "DEVELOPMENT_TEAM[sdk=macosx*]" = UZRHKPVWN9; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = Runner/Info.plist; - INFOPLIST_KEY_CFBundleDisplayName = SwiftControl; + INFOPLIST_KEY_CFBundleDisplayName = BikeControl; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.healthcare-fitness"; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", ); PRODUCT_BUNDLE_IDENTIFIER = de.jonasbark.swiftcontrol.darwin; + PRODUCT_NAME = BikeControl; PROVISIONING_PROFILE_SPECIFIER = ""; "PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "mac app store"; SWIFT_VERSION = 5.0; diff --git a/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 799b5bd0..f3d1e50e 100644 --- a/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -15,7 +15,7 @@ @@ -31,7 +31,7 @@ @@ -66,7 +66,7 @@ @@ -83,7 +83,7 @@ diff --git a/pubspec.yaml b/pubspec.yaml index 056dd239..060e670d 100755 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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.5.1+41 +version: 3.6.0+42 environment: sdk: ^3.9.0 diff --git a/test/screenshot_test.dart b/test/screenshot_test.dart index a29b200f..7a56c40d 100644 --- a/test/screenshot_test.dart +++ b/test/screenshot_test.dart @@ -17,7 +17,7 @@ import 'package:universal_ble/universal_ble.dart'; void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); PackageInfo.setMockInitialValues( - appName: 'SwiftControl', + appName: 'BikeControl', packageName: 'de.jonasbark.swiftcontrol', version: '3.5.0', buildNumber: '1', @@ -75,7 +75,7 @@ Future _createDeviceScreenshot(WidgetTester tester, (String type, Size siz child: MaterialApp( navigatorKey: navigatorKey, debugShowCheckedModeBanner: false, - title: 'SwiftControl', + title: 'BikeControl', theme: AppTheme.light, darkTheme: AppTheme.dark, themeMode: ThemeMode.light, diff --git a/web/index.html b/web/index.html index 680f437b..b3102de3 100644 --- a/web/index.html +++ b/web/index.html @@ -5,7 +5,7 @@ - + @@ -16,7 +16,7 @@ - SwiftControl + BikeControl