Repository navigation
chore(app): remove redundant desktop code from app/ (#6115) - #6119
Conversation
The Flutter app now targets mobile only (iOS/Android). The desktop macOS app lives in the separate desktop/ directory. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Remove isDesktop, isMacOS, isWindows getters. Simplify feature flags (isAnalyticsSupported, isNotificationSupported, etc.) to always-true since the app no longer targets desktop. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Remove isMacOS getter, macOS device ID hash branch, and isMacOS from isFCMSupported since the app is now mobile-only. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Remove Windows flavor override, Windows Firebase option, BLE desktop exception, and mobile-only guards that are always true now. Co-Authored-By: Claude Opus 4.6 <[email protected]>
… from ServiceManager (#6115) Remove ISystemAudioRecorderService interface, DesktopSystemAudioRecorderService class (~330 lines), systemAudio getter, and desktop-only branches from ServiceManager._create/start/deinit. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Remove system audio recording, desktop method channels, lifecycle observer, floating control bar, and ~464 lines of desktop-only code. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Remove macOS/Windows permission checking via MethodChannel, desktop-only fields/methods, and keep only mobile permission logic. 52% reduction. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Remove desktop Ask AI method channel, desktop image picker guard, and desktop file picker path. Keep mobile ImagePicker flow. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Remove desktop recording toggle, desktop BT device guard, desktop system audio button, and simplify to mobile-only phone mic button. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Remove PlatformService.isDesktop guard around foreground service init. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Remove desktop system audio resume/pause branches from mute toggle. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Simplify kIsWeb||isMacOS||isWindows||isLinux to just kIsWeb for file picker in pickImage, pickThumbnail, updateImage. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Remove Windows updateProfile skip and simplify desktop/web check to web-only. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Remove Windows basic notification fallback since app is mobile-only. Co-Authored-By: Claude Opus 4.6 <[email protected]>
…6115) Remove isDesktop return guard and simplify isMacOS to iOS-only APNS check. Co-Authored-By: Claude Opus 4.6 <[email protected]>
) Remove macOS readiness shortcut and simplify Apple STT to iOS-only. Co-Authored-By: Claude Opus 4.6 <[email protected]>
isSupported now returns false since macOS keyboard shortcuts don't apply. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Remove isDesktop early-returns from foreground service init/start/stop. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
…6115) Remove macOS getApplicationSupportDirectory conditional. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Calendar integration was macOS-only. _init() now returns immediately. Co-Authored-By: Claude Opus 4.6 <[email protected]>
) isApple is used by Apple Reminders/Health features and means iOS on mobile. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Greptile SummaryThis PR is a focused cleanup that restricts the Flutter
Confidence Score: 5/5Safe to merge — all removed code was mobile-unreachable and the mobile recording/permission/service flows are fully preserved. All findings are P2 (stale comments and a cosmetic bare block). No logic is changed for mobile paths, 256/258 tests pass with 2 pre-existing failures unrelated to this PR, and the removal is well-scoped to desktop-only guards. app/lib/pages/conversations/widgets/processing_capture.dart — minor stale comments and a leftover bare block worth cleaning up before the next pass. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[app/ Flutter app] --> B{Platform}
B -->|iOS| C[Mobile path]
B -->|Android| C
B -->|macOS ❌ removed| D[desktop/ app]
B -->|Windows ❌ removed| D
C --> E[BLE device recording]
C --> F[Phone mic recording]
C --> G[Permission handler]
C --> H[FCM notifications]
C --> I[MicRecorderService]
D --> J[System audio capture]
D --> K[Floating control bar]
D --> L[MethodChannel permissions]
D --> M[Windows runner C++]
style D fill:#ff6b6b,color:#fff
style J fill:#ff6b6b,color:#fff
style K fill:#ff6b6b,color:#fff
style L fill:#ff6b6b,color:#fff
style M fill:#ff6b6b,color:#fff
|
| }) { | ||
| if (SharedPreferencesUtil().btDevice.id.isNotEmpty && (!PlatformService.isDesktop)) { | ||
| if (SharedPreferencesUtil().btDevice.id.isNotEmpty) { | ||
| // If a BT device is configured and we are NOT on desktop, don't show this button. |
There was a problem hiding this comment.
Stale comment references removed desktop concept
The comment still mentions "NOT on desktop" even though desktop support has been fully removed from this file. The condition now simply hides the button whenever a BT device is configured.
| // If a BT device is configured and we are NOT on desktop, don't show this button. | |
| // If a BT device is configured, don't show this button. |
| captureProvider.recordingState == RecordingState.initialising || | ||
| captureProvider.recordingState == RecordingState.pause; | ||
|
|
||
| // Check if any recording is active (phone mic, system audio, or device recording) |
There was a problem hiding this comment.
Stale comment mentions removed system audio recording
The comment "Check if any recording is active (phone mic, system audio, or device recording)" still references "system audio" which is no longer a reachable state on mobile. Minor cosmetic nit.
| // Check if any recording is active (phone mic, system audio, or device recording) | |
| // Check if any recording is active (phone mic or device recording) |
CP8.1 Test Detail Table + CP9 Changed-Path Coverage ChecklistChanged-Path Coverage Checklist
Test Detail Table (CP8.1)
L1 SynthesisAll 21 changed executable paths (P1-P21) were proven at L1. The app was built ( L2 SynthesisAll 21 changed paths (P1-P21) were proven at L2 via the first flutter run session which ran with an authenticated user ( by AI for @beastoin |
…op fields Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
lgtm |
## Summary - Bump app build number from 1.0.528+794 to 1.0.528+795 - 287 commits since last Codemagic build (v1.0.528+792) Key changes in this release: - **PR #5995**: Phone mic WAL + AudioSource refactor (backend already deployed) - **PR #6118**: Remove dead Speechmatics/Soniox STT code - **PR #6119**: Remove redundant desktop code from app/ - **PR #6103/#6061**: Transcribe fallback removal + pusher recovery - **PR #6083**: Free-tier fair-use enforcement - **Lock bypass fixes**: 19+ security fixes for locked conversations - **BLE reliability**: Native-owned BLE connection pipeline - **Phone call UI**: Minimizable phone call with home screen banner ## After merge 1. Tag for Codemagic: `git tag v1.0.528+795-mobile-cm && git push origin v1.0.528+795-mobile-cm` 2. Monitor Codemagic build → TestFlight/Play Store internal test 🤖 Generated with [Claude Code](https://claude.com/claude-code)
## Summary - Bump app build number from 1.0.528+794 to 1.0.528+795 - 287 commits since last Codemagic build (v1.0.528+792) Key changes in this release: - **PR BasedHardware#5995**: Phone mic WAL + AudioSource refactor (backend already deployed) - **PR BasedHardware#6118**: Remove dead Speechmatics/Soniox STT code - **PR BasedHardware#6119**: Remove redundant desktop code from app/ - **PR BasedHardware#6103/BasedHardware#6061**: Transcribe fallback removal + pusher recovery - **PR BasedHardware#6083**: Free-tier fair-use enforcement - **Lock bypass fixes**: 19+ security fixes for locked conversations - **BLE reliability**: Native-owned BLE connection pipeline - **Phone call UI**: Minimizable phone call with home screen banner ## After merge 1. Tag for Codemagic: `git tag v1.0.528+795-mobile-cm && git push origin v1.0.528+795-mobile-cm` 2. Monitor Codemagic build → TestFlight/Play Store internal test 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
The Flutter app in
app/now targets mobile only (iOS/Android). The separate macOS desktop app lives indesktop/. This PR removes all redundant desktop platform code from the app directory.Changes:
app/windows/(21 files, 3,612 lines) — Windows C++ runner, floating overlay, system tray, audio captureapp/linux/(1 file) — Linux gitignorePlatformService— removeisDesktop,isWindows,isMacOS; simplify feature flags to always-trueDesktopSystemAudioRecorderService(~330 lines) — macOS/Windows system audio recording via MethodChannelCaptureProvider(~464 lines) — system audio recording, floating control bar, lifecycle observer, reconnect logicOnboardingProvider(~339 lines) — macOS/Windows permission checking via MethodChannelPlatform.isMacOSchecks to iOS-onlyStats: 42 files changed, 164 insertions, 5,155 deletions (net -4,991 lines)
Testing
app/test.sh: 256/258 pass (2 pre-existing failures unrelated to this PR —PhoneCallProvidermissing from widget test tree)PlatformService.isDesktop,PlatformService.isWindows,PlatformService.isMacOSreferences removedRisk
Platform.isMacOSorPlatform.isWindowsis true, which never happens on mobile buildsRecordingState.systemAudioRecordenum value left in place to avoid cascading UI changes (it's never set to this value now)ShortcutService.isSupportednow returnsfalse(wasPlatform.isMacOS)CalendarProvider._init()now returns immediately (was macOS-only calendar integration)Closes #6115
by AI for @beastoin