Repository navigation
fix: Implementation of Nearby Share (fixes #1272) - #4045
Open
hoangnamtaichua-prog wants to merge 1 commit into
Open
hoangnamtaichua-prog wants to merge 1 commit into
hoangnamtaichua-prog wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1272
Summary
To implement Nearby Share in MicroG, we need to provide the necessary GMS-facing API classes and the core service implementation. Nearby Share is built on top of the Nearby Connections protocol and uses several AIDL interfaces for communication between apps and the GMS process.
Given the complexity of the Nearby Share protocol, this implementation provides the essential AIDL interfaces, data structures (Parcelables), and the service stub required for apps to interact with Nearby Share. This allows apps to discover the feature and initiate sharing requests, which can then be handled by the MicroG service.
Summary of Changes
INearbySharingService,INearbySharingCallback,IDiscoveryCallback, andIShareCallbackin thecom.google.android.gms.nearby.sharing.internalpackage to match the expected GMS structure.ShareTarget,Attachment, and other necessary Parcelables using MicroG'sAutoSafeParcelablefor compatibility and ease of implementation.NearbySharingServiceinplay-services-coreto handle incoming AIDL calls and manage the sharing lifecycle.NearbySharingclass inplay-services-apito provide the standard entry point for apps usingNearby.getSharingClient(context).Verification
Reviewed changes and verified alignment with existing project structure and types.