Skip to content

Updated API calls NextcloudKit dependency to breaking changes in 7.3.3#10109

Merged
i2h3 merged 1 commit into
masterfrom
i2h3/fix/nextcloudkit
Jun 4, 2026
Merged

Updated API calls NextcloudKit dependency to breaking changes in 7.3.3#10109
i2h3 merged 1 commit into
masterfrom
i2h3/fix/nextcloudkit

Conversation

@i2h3
Copy link
Copy Markdown
Collaborator

@i2h3 i2h3 commented Jun 4, 2026

NextcloudKit 7.3.3 shipped breaking API changes due to this pull request. Some adaptions were required.

@i2h3 i2h3 added this to the 33.0.6 milestone Jun 4, 2026
@i2h3 i2h3 self-assigned this Jun 4, 2026
@i2h3 i2h3 added os: 🍎 macOS Apple macOS, formerly also known as OS X feature: 📁 file provider macOS File Provider Extension, more general also known as virtual file system. labels Jun 4, 2026
@github-project-automation github-project-automation Bot moved this to 🧭 Planning evaluation (don't pick) in 💻 Desktop Clients team Jun 4, 2026
@i2h3
Copy link
Copy Markdown
Collaborator Author

i2h3 commented Jun 4, 2026

/backport to stable-33.0

…king changes in 7.3.3

Signed-off-by: Iva Horn <iva.horn@nextcloud.com>
@i2h3 i2h3 force-pushed the i2h3/fix/nextcloudkit branch from 97ce9b3 to d659a17 Compare June 4, 2026 08:27
@i2h3 i2h3 requested a review from Copilot June 4, 2026 08:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the macOS File Provider integration to accommodate breaking API changes introduced in NextcloudKit 7.3.3, adjusting the RemoteInterface abstraction and related call sites/mocks accordingly.

Changes:

  • Bump NextcloudKit dependency to 7.3.3 (and update SwiftPM lockfile pins accordingly).
  • Update RemoteInterface.downloadAsync to the new return shape and adapt usages in production code and test mocks.
  • Adjust NextcloudKit RemoteInterface bridging logic to re-derive metadata from the new callback payload, and tighten a helper closure signature with @Sendable.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
shell_integration/MacOSX/NextcloudFileProviderKit/Tests/Interface/MockRemoteInterface.swift Updates mock downloadAsync to match NextcloudKit 7.3.3 API shape.
shell_integration/MacOSX/NextcloudFileProviderKit/Sources/NextcloudFileProviderKitMocks/TestableRemoteInterface.swift Updates testable RemoteInterface stub for new downloadAsync return tuple.
shell_integration/MacOSX/NextcloudFileProviderKit/Sources/NextcloudFileProviderKit/Item/Item+Fetch.swift Adjusts download call sites to the new tuple return structure.
shell_integration/MacOSX/NextcloudFileProviderKit/Sources/NextcloudFileProviderKit/Interface/RemoteInterface.swift Updates RemoteInterface.downloadAsync signature to match the dependency change.
shell_integration/MacOSX/NextcloudFileProviderKit/Sources/NextcloudFileProviderKit/Interface/NextcloudKit+RemoteInterface.swift Adapts NextcloudKit bridging callback to new parameters and reconstructs returned metadata.
shell_integration/MacOSX/NextcloudFileProviderKit/Sources/NextcloudFileProviderKit/Extension/FileProviderExtension.swift Marks signalEnumerator completion handler as @Sendable.
shell_integration/MacOSX/NextcloudFileProviderKit/Package.swift Bumps NextcloudKit dependency requirement to 7.3.3.
Nextcloud Desktop Client.xcworkspace/xcshareddata/swiftpm/Package.resolved Updates resolved dependency versions/revisions for the new dependency graph.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

Artifact containing the AppImage: nextcloud-appimage-pr-10109.zip

Digest: sha256:9c2bc94f23ca81e6d25a30428327cd4906908b637a8176aa399c25a98ad47b2d

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 4, 2026

@i2h3 i2h3 merged commit 1d63b7a into master Jun 4, 2026
24 checks passed
@i2h3 i2h3 deleted the i2h3/fix/nextcloudkit branch June 4, 2026 10:19
@github-project-automation github-project-automation Bot moved this from 🧭 Planning evaluation (don't pick) to ☑️ Done in 💻 Desktop Clients team Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: 📁 file provider macOS File Provider Extension, more general also known as virtual file system. os: 🍎 macOS Apple macOS, formerly also known as OS X

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.

2 participants