diff --git a/lib/bluetooth/devices/proxy/proxy_device.dart b/lib/bluetooth/devices/proxy/proxy_device.dart index 5002d600..d594416b 100644 --- a/lib/bluetooth/devices/proxy/proxy_device.dart +++ b/lib/bluetooth/devices/proxy/proxy_device.dart @@ -334,36 +334,12 @@ class ProxyDevice extends BluetoothDevice { } } - /// True when the user's 5-day trial has ended and they haven't upgraded. - /// Blocks any smart-trainer connect attempt — BLE upstream, transporter - /// setup, advertising, all of it. Pro and purchased-base-version users - /// bypass this gate (`IAPManager.isTrialExpired` already returns false for - /// them). - bool get _isSubscriptionTrialExpired => IAPManager.instance.isTrialExpired; - - void _announceSubscriptionTrialExpired() { - final title = AppLocalizations.current.trialExpiredSmartTrainerBlockedTitle; - final body = AppLocalizations.current.trialExpiredSmartTrainerBlockedBody; - core.connection.signalNotification( - AlertNotification(LogLevel.LOGLEVEL_WARNING, '$title — $body'), - ); - core.flutterLocalNotificationsPlugin.show( - 1341, - title, - body, - const NotificationDetails( - android: AndroidNotificationDetails('SubscriptionTrial', 'Subscription Trial Status'), - iOS: DarwinNotificationDetails(presentAlert: true, presentSound: true), - ), - ); - } - Future startProxy() async { - if (_isSubscriptionTrialExpired) { - _announceSubscriptionTrialExpired(); - // Clear auto-connect so the next scan cycle doesn't keep re-firing this - // gate. The user re-enables auto-connect implicitly when they tap - // Connect after purchasing. + if (IAPManager.instance.isTrialExpired) { + // 5-day trial over, user hasn't purchased — silently refuse the connect. + // The UI Connect buttons surface a Go Pro dialog before ever reaching + // here; this branch exists as a defensive funnel for the auto-connect + // path. Clear auto-connect so the scanner doesn't keep re-firing. await core.settings.setAutoConnect(trainerKey, false); return; } diff --git a/lib/i10n/intl_en.arb b/lib/i10n/intl_en.arb index 2f5a9d8d..3f10b13b 100644 --- a/lib/i10n/intl_en.arb +++ b/lib/i10n/intl_en.arb @@ -521,8 +521,6 @@ }, "trialDaysRemaining": "{trialDaysRemaining} days remaining", "trialExpired": "Trial expired. Commands limited to {dailyCommandLimit} per day.", - "trialExpiredSmartTrainerBlockedTitle": "5-day trial expired", - "trialExpiredSmartTrainerBlockedBody": "Your 5-day trial is over. Upgrade to Pro or buy the Base version to connect to your smart trainer.", "trialPeriodActive": "Trial Period Active - {trialDaysRemaining} days remaining", "trialPeriodDescription": "Enjoy unlimited commands during your trial period. After the trial, commands will be limited to {dailyCommandLimit} per day.", "troubleshootingGuide": "Questions & Answers",