[PB-5921]: File Provider folder browsing (read-only enumeration)#492
Open
terrerox wants to merge 2 commits into
Open
Conversation
The File Provider extension needs the Drive API base URL to build authenticated requests from the App Group keychain. Add a dedicated shared key so it can be read alongside the existing auth token.
Replace the placeholder enumerator with real Drive folder browsing: paginate folders then files for a container, build FileProviderItem metadata (name, type, size, dates, capabilities) from Drive responses, and resolve identifiers via a typed folder/file id codec. Add a DriveAPIFactory that constructs an authenticated DriveAPI from the shared App Group keychain, and wire the new sources into the extension target.
4fcdcfd to
f222339
Compare
|
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.



Implements read-only browsing of Drive in the iOS Files.app via the
InternxtFileProviderextension.What this delivers
and navigates into subfolders.
plainName+ extension.NSFileProviderPageas the cursor(folders first, then files,
plainName ASC), so large folders show all items.materialization flags so items render as normal cloud items (folders
materialized; files cloud-downloadable) instead of greyed/locked placeholders.
notAuthenticated(drives the system "Sign in to Internxt Drive" prompt); network errors
surface as errors without crashing.
DriveAPIFactorybuilds an authenticated client fromthe shared App Group keychain; adds a shared
driveBaseUrlkey.f:/d:) so a container identifierround-tripped by Files.app resolves back to a Drive folder uuid.