Skip to content

Remove redundant desktop platform code from app/ (mobile-only) #6115

Closed

Description

@beastoin

Summary

The app/ directory now focuses exclusively on mobile (iOS/Android). Desktop app code lives separately in desktop/. The remaining desktop-specific code in app/ is redundant and should be removed to reduce confusion and maintenance burden.

Desktop artifacts to remove

Platform directories (21 files)

  • app/windows/ — 20 files: CMakeLists, C++ runners, floating overlay, system tray, Windows audio capture, Win32 window management
  • app/linux/ — 1 file: .gitignore

Dart code with desktop conditionals (4 files, ~13 references)

  • app/lib/utils/platform/platform_service.dart — isDesktop, isWindows, isMacOS getters and desktop-specific feature flags
  • app/lib/main.dart — Windows flavor detection, Firebase options branching, BLE logging guard (5 refs)
  • app/lib/pages/conversations/widgets/processing_capture.dart — Desktop mic permission, BT device visibility, system audio button (4 refs)
  • app/lib/pages/home/page.dart — Desktop geolocation guard (1 ref)

Indirect desktop references (3 files)

  • app/lib/pages/home/device.dart — isIntercomSupported (desktop = false)
  • app/lib/pages/settings/device_settings.dart — isIntercomSupported
  • app/lib/pages/settings/settings_drawer.dart — isIntercomSupported

Acceptance criteria

  • app/windows/ directory deleted
  • app/linux/ directory deleted
  • Desktop conditionals in Dart code simplified (remove dead branches, simplify PlatformService)
  • PlatformService cleaned up: remove isDesktop, isWindows, isMacOS, desktop feature flags
  • isIntercomSupported, isNotificationSupported, isAnalyticsSupported simplified to always-true (mobile only)
  • App builds and runs on iOS/Android after cleanup
  • No desktop imports or references remain in app/lib/

Activity

  1. added 20 commits that reference this issue on Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions