From 481db4b8aec72b9ff11a551a71f3b29a0cf377c4 Mon Sep 17 00:00:00 2001 From: Skip Houtzager Date: Thu, 12 May 2022 10:58:15 +0200 Subject: [PATCH] Update major Alamofire version --- FlipperMockPlugin.podspec | 2 +- FlipperMockPlugin/src/FlipSession.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/FlipperMockPlugin.podspec b/FlipperMockPlugin.podspec index 7ac7676..00c71e4 100644 --- a/FlipperMockPlugin.podspec +++ b/FlipperMockPlugin.podspec @@ -22,7 +22,7 @@ Pod::Spec.new do |spec| spec.static_framework = true spec.dependency 'YogaKit' spec.dependency 'Yoga' - spec.dependency 'Alamofire' + spec.dependency 'Alamofire', '~> 5.0' spec.dependency 'FlipperKit/Core' spec.compiler_flags = folly_compiler_flags spec.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)\"/Headers/Private/FlipperKit/**" } diff --git a/FlipperMockPlugin/src/FlipSession.swift b/FlipperMockPlugin/src/FlipSession.swift index 06ee287..75f239d 100644 --- a/FlipperMockPlugin/src/FlipSession.swift +++ b/FlipperMockPlugin/src/FlipSession.swift @@ -10,13 +10,13 @@ import Alamofire public class FlipSession { - public static let `default` : SessionManager = { + public static let `default` : Session = { let configuration: URLSessionConfiguration = { let configuration = URLSessionConfiguration.default let safeProtocolClasses = [FlipMockUrlProtocol.self] + (configuration.protocolClasses ?? []) configuration.protocolClasses = safeProtocolClasses return configuration}() - return SessionManager(configuration:configuration)}() + return Session(configuration:configuration)}() /** # Warning: #