Skip to content

Commit 779961a

Browse files
authored
Add Xcode 26 compatibility (#24584)
* Fix ImageDownloader compilation * Fix compilation in Pinghub * Fix Jetpack compilation
1 parent 121f472 commit 779961a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Modules/Sources/AsyncImageKit/ImageDownloader.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ private final class ImageDataTask {
165165
self.task = task
166166
}
167167

168-
func getData(subscriptionID: UUID) async throws -> Data {
168+
nonisolated func getData(subscriptionID: UUID) async throws -> Data {
169169
try await withTaskCancellationHandler {
170170
try await task.value
171171
} onCancel: { [weak downloader, key] in

WordPress/Classes/Networking/Pinghub.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ private class StarscreamWebSocket: Socket {
233233
var onText: ((String) -> Void)?
234234
var onData: ((Data) -> Void)?
235235

236-
let socket: WebSocket
236+
let socket: Starscream.WebSocket
237237

238-
init(socket: WebSocket) {
238+
init(socket: Starscream.WebSocket) {
239239
self.socket = socket
240240

241241
socket.onEvent = { [weak self] event in

WordPress/WordPressShareExtension/Sources/Services/ShareExtractor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ private protocol ExtensionContentExtractor {
228228
func copyToSharedContainer(url: URL) -> URL?
229229
}
230230

231-
private protocol TypeBasedExtensionContentExtractor: ExtensionContentExtractor {
231+
private protocol TypeBasedExtensionContentExtractor: ExtensionContentExtractor, Sendable {
232232
associatedtype Payload
233233
var acceptedType: String { get }
234234
func convert(payload: Payload) -> ExtractedItem?

0 commit comments

Comments
 (0)