Skip to content

Nearby - QuickShare auto accept impleemntation, Remove old file share#92

Merged
sameerasw merged 7 commits intodevelopfrom
nearby
Mar 13, 2026
Merged

Nearby - QuickShare auto accept impleemntation, Remove old file share#92
sameerasw merged 7 commits intodevelopfrom
nearby

Conversation

@sameerasw
Copy link
Owner

This pull request introduces support for a new "Quick Share" feature, allowing the app to receive files from nearby devices. It adds the necessary infrastructure for enabling/disabling this feature, updates settings and UI components to reflect its state, and removes the legacy ShareActivity in favor of a new approach. Additionally, it integrates the Wire library for protocol buffer support and makes minor improvements to the About section and quick settings tiles.

Quick Share Feature Integration:

  • Added a new quick_share_enabled preference in DataStoreManager with corresponding methods to set and observe its value, and updated the repository interface and implementation to expose these methods. (app/src/main/java/com/sameerasw/airsync/data/local/DataStoreManager.kt [1] [2]; app/src/main/java/com/sameerasw/airsync/domain/repository/AirSyncRepository.kt [3]; app/src/main/java/com/sameerasw/airsync/data/repository/AirSyncRepositoryImpl.kt [4]
  • Updated UiState to include isQuickShareEnabled, and ensured the AirSyncViewModel observes and updates this state, including initial state setup. (app/src/main/java/com/sameerasw/airsync/domain/model/UiState.kt [1]; app/src/main/java/com/sameerasw/airsync/presentation/viewmodel/AirSyncViewModel.kt [2] [3] [4]
  • Added a new settings card for enabling/disabling Quick Share in the UI, and updated quick settings tiles logic to include Quick Share. (app/src/main/java/com/sameerasw/airsync/presentation/ui/components/SettingsView.kt [1] [2]; app/src/main/java/com/sameerasw/airsync/presentation/ui/components/cards/QuickSettingsTilesCard.kt [3]; app/src/main/java/com/sameerasw/airsync/presentation/ui/composables/WelcomeScreen.kt [4]
  • Registered the new QuickShareService in the Android manifest to handle incoming Quick Share requests. (app/src/main/AndroidManifest.xml app/src/main/AndroidManifest.xmlR176-R180)

Removal of Legacy Sharing Activity:

  • Removed the ShareActivity class and its manifest entry, as Quick Share replaces the old sharing mechanism. (app/src/main/java/com/sameerasw/airsync/presentation/ui/activities/ShareActivity.kt [1]; app/src/main/AndroidManifest.xml [2]

Build System and Library Updates:

  • Integrated the Wire library (for protocol buffer support) and BouncyCastle (for cryptography) into the build configuration, and applied the Wire Gradle plugin. (app/build.gradle.kts [1] [2]

UI and About Section Improvements:

  • Enhanced the About section to display a clickable credit link for the app icon designer. (app/src/main/java/com/sameerasw/airsync/presentation/ui/components/AboutSection.kt [1] [2]

Manifest and Permissions:

  • Minor cleanup and addition of permissions in the manifest to support new features and maintain organization. (app/src/main/AndroidManifest.xml [1] [2]

@sameerasw sameerasw self-assigned this Mar 13, 2026
@sameerasw sameerasw added the enhancement New feature or request label Mar 13, 2026
@sameerasw sameerasw merged commit 2124fd1 into develop Mar 13, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from Backlog to Done in AirSync Features and Bugs Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant