From 1307211cbd35471acfc1e757faad14bf9add4ba4 Mon Sep 17 00:00:00 2001 From: Donny Wals Date: Wed, 27 Nov 2024 11:14:53 +0100 Subject: [PATCH] Version bumped to 3.3.1 --- Sources/TransloaditKit/TransloaditAPI.swift | 9 +++++++-- Transloadit.podspec | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Sources/TransloaditKit/TransloaditAPI.swift b/Sources/TransloaditKit/TransloaditAPI.swift index f78c50e..d4f37bb 100644 --- a/Sources/TransloaditKit/TransloaditAPI.swift +++ b/Sources/TransloaditKit/TransloaditAPI.swift @@ -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() } diff --git a/Transloadit.podspec b/Transloadit.podspec index aa391e6..e07f068 100644 --- a/Transloadit.podspec +++ b/Transloadit.podspec @@ -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'