Skip to content

Commit 3aed8ec

Browse files
committed
fix: NextcloudKit compatibility.
Signed-off-by: Iva Horn <iva.horn@nextcloud.com>
1 parent 62a7b4a commit 3aed8ec

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Sources/NextcloudFileProviderKit/Interface/NextcloudKit+RemoteInterface.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@ extension NextcloudKit: RemoteInterface {
232232
) async -> (
233233
account: String,
234234
etag: String?,
235-
date: NSDate?,
235+
date: Date?,
236236
length: Int64,
237-
headers: [AnyHashable: Any]?,
237+
headers: [AnyHashable: any Sendable]?,
238238
afError: AFError?,
239239
nkError: NKError
240240
) {
@@ -251,7 +251,7 @@ extension NextcloudKit: RemoteInterface {
251251
continuation.resume(returning: (
252252
account,
253253
etag,
254-
date as NSDate?,
254+
date,
255255
length,
256256
headers,
257257
afError,

Sources/NextcloudFileProviderKit/Interface/RemoteInterface.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ public protocol RemoteInterface {
9898
) async -> (
9999
account: String,
100100
etag: String?,
101-
date: NSDate?,
101+
date: Date?,
102102
length: Int64,
103-
headers: [AnyHashable: Any]?,
103+
headers: [AnyHashable: any Sendable]?,
104104
afError: AFError?,
105105
nkError: NKError
106106
)

0 commit comments

Comments
 (0)