Skip to content

Commit

Permalink
Version bumped to 3.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
donnywals committed Nov 27, 2024
1 parent 43fa6fc commit 1307211
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions Sources/TransloaditKit/TransloaditAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,16 @@ final class TransloaditAPI: NSObject {

init(credentials: Transloadit.Credentials, session: URLSession) {
self.credentials = credentials
if session.configuration.sessionSendsLaunchEvents {
self.configuration = .background(withIdentifier: "com.transloadit.bgurlsession")
if #available(iOS 7.0, macOS 11.0, *) {
if session.configuration.sessionSendsLaunchEvents {
self.configuration = .background(withIdentifier: "com.transloadit.bgurlsession")
} else {
self.configuration = session.configuration
}
} else {
self.configuration = session.configuration
}

self.delegateQueue = session.delegateQueue
super.init()
}
Expand Down
2 changes: 1 addition & 1 deletion Transloadit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'Transloadit'
s.version = '3.3.0'
s.version = '3.3.1'
s.summary = 'Transloadit client in Swift'
s.swift_version = '5.0'

Expand Down

0 comments on commit 1307211

Please sign in to comment.