Skip to content

Commit c8eaea6

Browse files
committed
corrected upload fix to macOS 10.15.4
1 parent 622f548 commit c8eaea6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/TUSKit/Files.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ final class Files {
157157
}
158158
}
159159

160-
@available(iOS 13.4, macOS 10.15, *)
160+
@available(iOS 13.4, macOS 10.15.4, *)
161161
func streamingData(_ dataGenerator: () -> Data?, id: UUID, preferredFileExtension: String? = nil) throws -> URL {
162162
try queue.sync {
163163
try makeDirectoryIfNeeded()

Sources/TUSKit/Tasks/UploadDataTask.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ final class UploadDataTask: NSObject, IdentifiableTask {
182182

183183
// Can't use switch with #available :'(
184184
let data: Data
185-
if let range = self.range, #available(iOS 13.4, macOS 10.15, *) { // Has range, for newer versions
185+
if let range = self.range, #available(iOS 13.4, macOS 10.15.4, *) { // Has range, for newer versions
186186
var offset = range.startIndex
187187

188188
return try files.streamingData({

0 commit comments

Comments
 (0)