Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage async await #8289

Merged
merged 18 commits into from
Jul 23, 2021
Prev Previous commit
Next Next commit
Fix build for Xcode 12.5
  • Loading branch information
paulb777 committed Jul 23, 2021
commit cff5439d14e99716733c3867b08e39d90b975423
3 changes: 2 additions & 1 deletion FirebaseStorageSwift/Sources/AsyncAwait.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import FirebaseStorage

@available(iOS 15.0, *)
#if swift(>=5.5)
public extension StorageReference {
@discardableResult
func putDataAwait(_ uploadData: Data,
Expand All @@ -24,3 +24,4 @@ public extension StorageReference {
return try await __putDataGlue(uploadData, metadata: metadata)
paulb777 marked this conversation as resolved.
Show resolved Hide resolved
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import FirebaseStorage
import FirebaseStorageSwift
import XCTest

@available(iOS 15.0, *)
#if swift(>=5.5)
class StorageAsyncAwait: StorageIntegrationCommon {
func testGetMetadata() async throws {
let ref = storage.reference().child("ios/public/1mb2")
Expand Down Expand Up @@ -427,3 +427,4 @@ class StorageAsyncAwait: StorageIntegrationCommon {
}
}
}
#endif