Skip to content

[PB-5921]: File Provider folder browsing (read-only enumeration)#492

Open
terrerox wants to merge 2 commits into
feature/pb-5920-file-provider-domain-registrationfrom
feature/pb-5920-file-provider-folder-browsing
Open

[PB-5921]: File Provider folder browsing (read-only enumeration)#492
terrerox wants to merge 2 commits into
feature/pb-5920-file-provider-domain-registrationfrom
feature/pb-5920-file-provider-folder-browsing

Conversation

@terrerox

@terrerox terrerox commented Jun 12, 2026

Copy link
Copy Markdown

Implements read-only browsing of Drive in the iOS Files.app via the InternxtFileProvider extension.

What this delivers

  • Root + subfolder enumeration — lists folders and files from the Drive API
    and navigates into subfolders.
  • Correct namesplainName + extension.
  • Pagination — 50 items/page via NSFileProviderPage as the cursor
    (folders first, then files, plainName ASC), so large folders show all items.
  • Item metadata — size, creation/modification dates, and per-kind
    materialization flags so items render as normal cloud items (folders
    materialized; files cloud-downloadable) instead of greyed/locked placeholders.
  • Auth/offline states — missing credentials → notAuthenticated
    (drives the system "Sign in to Internxt Drive" prompt); network errors
    surface as errors without crashing.
  • Drive API wiringDriveAPIFactory builds an authenticated client from
    the shared App Group keychain; adds a shared driveBaseUrl key.
  • Type-prefixed item identifiers (f:/d:) so a container identifier
    round-tripped by Files.app resolves back to a Drive folder uuid.

terrerox added 2 commits June 11, 2026 22:06
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.
@terrerox terrerox force-pushed the feature/pb-5920-file-provider-folder-browsing branch from 4fcdcfd to f222339 Compare June 12, 2026 02:40
@sonarqubecloud

Copy link
Copy Markdown

@terrerox terrerox changed the title Feature/pb 5920 file provider folder browsing [PB-5921]: File Provider folder browsing (read-only enumeration) Jun 12, 2026
@terrerox terrerox self-assigned this Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant