Skip to content
Snippets Groups Projects
Commit 2150e2b4 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Add availability check for ios 15.0

parent 5ba3738d
Branches
No related tags found
No related merge requests found
......@@ -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? {
......
......@@ -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?
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment