From 856f883eec689ed023895c3f9e6d008e2464ce2f Mon Sep 17 00:00:00 2001 From: Jeroen <76699269+IT-Guy007@users.noreply.github.com> Date: Sat, 27 Jun 2026 20:58:51 +0200 Subject: [PATCH] Make HTTPSCallableResult Sendable to fix Swift 6 bridge data-race error The swift-tools-version bump to 6.1 in 0.20.0 puts the package and its skipstone-generated *_Bridge.swift files into Swift 6 language mode, where strict-concurrency violations are errors. The generated SkipFirebaseFunctions bridge resumes a continuation with an HTTPSCallableResult via the 'sending' resume(returning:) parameter, but the re-exported FirebaseFunctions HTTPSCallableResult is not Sendable, triggering #SendingRisksDataRace. Add a retroactive @unchecked Sendable conformance, mirroring the same fix 0.20.0 already applied to Firestore, CollectionReference and Messaging. Fixes #92 --- Sources/SkipFirebaseFunctions/SkipFirebaseFunctions.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/SkipFirebaseFunctions/SkipFirebaseFunctions.swift b/Sources/SkipFirebaseFunctions/SkipFirebaseFunctions.swift index 381835c..c6ad060 100644 --- a/Sources/SkipFirebaseFunctions/SkipFirebaseFunctions.swift +++ b/Sources/SkipFirebaseFunctions/SkipFirebaseFunctions.swift @@ -3,6 +3,8 @@ #if !SKIP_BRIDGE #if canImport(FirebaseFunctions) @_exported import FirebaseFunctions + +extension HTTPSCallableResult: @retroactive @unchecked Sendable {} #elseif SKIP import Foundation import SkipFirebaseCore