From 07cfa1e4e4cd4ba47ce799b24afef79e5eccd92a Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Thu, 2 Oct 2025 03:40:23 +0200 Subject: [PATCH] Added the "transport" argument to the init()" initializer for the AmiiboLiveClient client in the library target. --- Sources/AmiiboService/Public/Clients/AmiiboLiveClient.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/AmiiboService/Public/Clients/AmiiboLiveClient.swift b/Sources/AmiiboService/Public/Clients/AmiiboLiveClient.swift index 7a137a0..1d05fbe 100644 --- a/Sources/AmiiboService/Public/Clients/AmiiboLiveClient.swift +++ b/Sources/AmiiboService/Public/Clients/AmiiboLiveClient.swift @@ -25,12 +25,13 @@ public struct AmiiboLiveClient: Sendable { // MARK: Initializers /// Initializes this client. - public init() { + /// - Parameter transport: A transport that performs HTTP operations. + public init(transport: any ClientTransport = URLSessionTransport()) { self.client = .init( // The force unwrapping implemented below assumes that the server definition from the OpenAPI specification is correct. serverURL: try! Servers.Server1.url(), configuration: .init(dateTranscoder: ISOTimestampTranscoder()), - transport: URLSessionTransport() + transport: transport ) }