From dbc307bc1a1e9fa910be145f5a34f22f007069c3 Mon Sep 17 00:00:00 2001 From: DeluxeAlonso Date: Sat, 26 Aug 2023 21:35:47 -0500 Subject: [PATCH 1/3] Updates ConfigurationClient initializer --- .../Core/Services/Configuration/ConfigurationClient.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NetworkInfrastructure/NetworkInfrastructure/Core/Services/Configuration/ConfigurationClient.swift b/NetworkInfrastructure/NetworkInfrastructure/Core/Services/Configuration/ConfigurationClient.swift index d2ad7bab..7ee60111 100644 --- a/NetworkInfrastructure/NetworkInfrastructure/Core/Services/Configuration/ConfigurationClient.swift +++ b/NetworkInfrastructure/NetworkInfrastructure/Core/Services/Configuration/ConfigurationClient.swift @@ -21,8 +21,9 @@ final class ConfigurationClient: APIClient, ConfigurationClientProtocol { convenience init() { let configuration: URLSessionConfiguration = .default configuration.requestCachePolicy = .reloadIgnoringLocalCacheData + let session = URLSession(configuration: configuration) - self.init(session: URLSession(configuration: configuration)) + self.init(session: session) } // MARK: - ConfigurationClientProtocol From 9b736902281380190111654ee648f01a63ec8a9a Mon Sep 17 00:00:00 2001 From: DeluxeAlonso Date: Sat, 26 Aug 2023 21:36:02 -0500 Subject: [PATCH 2/3] Updates GenreClient initializer --- .../Core/Services/Genre/GenreClient.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NetworkInfrastructure/NetworkInfrastructure/Core/Services/Genre/GenreClient.swift b/NetworkInfrastructure/NetworkInfrastructure/Core/Services/Genre/GenreClient.swift index 4dfca5d8..7a0b3979 100644 --- a/NetworkInfrastructure/NetworkInfrastructure/Core/Services/Genre/GenreClient.swift +++ b/NetworkInfrastructure/NetworkInfrastructure/Core/Services/Genre/GenreClient.swift @@ -21,8 +21,9 @@ final class GenreClient: APIClient, GenreClientProtocol { convenience init() { let configuration: URLSessionConfiguration = .default configuration.requestCachePolicy = .reloadIgnoringLocalCacheData + let session = URLSession(configuration: configuration) - self.init(session: URLSession(configuration: configuration)) + self.init(session: session) } // MARK: - GenreClientProtocol From 62288b007116b20cb3fb6a0b5f2599529a10d53e Mon Sep 17 00:00:00 2001 From: DeluxeAlonso Date: Sat, 26 Aug 2023 21:37:31 -0500 Subject: [PATCH 3/3] Updates MovieClient initializer --- .../Core/Services/Movie/MovieClient.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NetworkInfrastructure/NetworkInfrastructure/Core/Services/Movie/MovieClient.swift b/NetworkInfrastructure/NetworkInfrastructure/Core/Services/Movie/MovieClient.swift index eb7f7f0a..0c1adb40 100644 --- a/NetworkInfrastructure/NetworkInfrastructure/Core/Services/Movie/MovieClient.swift +++ b/NetworkInfrastructure/NetworkInfrastructure/Core/Services/Movie/MovieClient.swift @@ -21,8 +21,9 @@ final class MovieClient: APIClient, MovieClientProtocol { convenience init() { let configuration: URLSessionConfiguration = .default configuration.requestCachePolicy = .reloadIgnoringLocalCacheData + let session = URLSession(configuration: configuration) - self.init(session: URLSession(configuration: configuration)) + self.init(session: session) } // MARK: - Movie list