Commit 3dc741e 1 parent 3b1e6c0 commit 3dc741e Copy full SHA for 3dc741e
File tree 3 files changed +10
-5
lines changed
3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import PackageDescription
5
5
6
6
let package = Package (
7
7
name: " TUSKit " ,
8
- platforms: [ . iOS( . v10) , . macOS( . v10_10 ) ] ,
8
+ platforms: [ . iOS( . v10) , . macOS( . v10_11 ) ] ,
9
9
products: [
10
10
// Products define the executables and libraries a package produces, and make them visible to other packages.
11
11
. library(
Original file line number Diff line number Diff line change @@ -107,10 +107,15 @@ public final class TUSClient {
107
107
storageDirectory: URL ? = nil , chunkSize: Int = 500 * 1024 ,
108
108
supportedExtensions: [ TUSProtocolExtension ] = [ . creation] ) throws {
109
109
110
- if sessionConfiguration. sessionSendsLaunchEvents == false {
110
+ if #available( iOS 7 . 0 , macOS 11 . 0 , * ) {
111
+ if sessionConfiguration. sessionSendsLaunchEvents == false {
111
112
print ( " TUSClient warning: initializing with a session configuration that's not suited for background uploads. " )
113
+ }
114
+ } else {
115
+ print ( " TUSClient warning: Cannot verify URLSession background configuration; Background sessions are most likely not supported on your target OS. " )
112
116
}
113
117
118
+
114
119
let scheduler = Scheduler ( )
115
120
self . sessionIdentifier = sessionIdentifier
116
121
self . api = TUSAPI ( sessionConfiguration: sessionConfiguration)
Original file line number Diff line number Diff line change 7
7
8
8
Pod ::Spec . new do |s |
9
9
s . name = 'TUSKit'
10
- s . version = '3.2'
10
+ s . version = '3.2.0 '
11
11
s . summary = 'TUSKit client in Swift'
12
12
s . swift_version = '5.0'
13
13
@@ -28,8 +28,8 @@ Swift client for https://tus.io called TUSKit. Mac and iOS compatible.
28
28
s . source = { :git => 'https://github.com/tus/TUSKit.git' , :tag => s . version . to_s }
29
29
s . platform = :ios
30
30
31
- s . ios . deployment_target = '9 .0'
32
- s . osx . deployment_target = '10.9 '
31
+ s . ios . deployment_target = '10 .0'
32
+ s . osx . deployment_target = '10.11 '
33
33
34
34
s . source_files = 'Sources/TUSKit/**/*'
35
35
You can’t perform that action at this time.
0 commit comments