From 2150e2b4fdbe28dfda0153f908b3a52a160ff2bd Mon Sep 17 00:00:00 2001 From: tobias <thinkdifferent055@gmail.com> Date: Tue, 14 Dec 2021 22:01:05 +0100 Subject: [PATCH] Add availability check for ios 15.0 --- AppleLibs/Network/Requests/DataManager.swift | 6 +++--- AppleLibs/Network/Requests/DataMapper.swift | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AppleLibs/Network/Requests/DataManager.swift b/AppleLibs/Network/Requests/DataManager.swift index 437a1b6..aa88da8 100644 --- a/AppleLibs/Network/Requests/DataManager.swift +++ b/AppleLibs/Network/Requests/DataManager.swift @@ -11,13 +11,13 @@ import os.log public protocol HttpResponseFilter { - @available(iOS 13.0.0, *) + @available(iOS 15.0.0, *) func handleResponse(request: Request, data: Data?, dataMapper: DataMapper?, sender: Any?) async throws -> Any? } public protocol HttpSuccessFilter { - @available(iOS 13.0.0, *) + @available(iOS 15.0.0, *) func handleResponse(data: Data?, response: HTTPURLResponse, dataMapper: DataMapper?, sender: Any?) async throws -> Any? } @@ -88,7 +88,7 @@ public class DataManager: NSObject, URLSessionDelegate return url } - @available(iOS 13.0, *) + @available(iOS 15.0, *) @available(macCatalyst 15.0.0, *) @discardableResult public func request(request r: Request, dataMapper: DataMapper? = nil, sender: Any? = nil) async throws -> Any? { diff --git a/AppleLibs/Network/Requests/DataMapper.swift b/AppleLibs/Network/Requests/DataMapper.swift index 749ac99..220d2b6 100644 --- a/AppleLibs/Network/Requests/DataMapper.swift +++ b/AppleLibs/Network/Requests/DataMapper.swift @@ -10,6 +10,6 @@ import Foundation public protocol DataMapper { - @available(iOS 13.0.0, *) + @available(iOS 15.0.0, *) func mapData(data: Data?, response: URLResponse?, sender: Any?) async throws -> Any? } -- GitLab