Skip to content

Commit

Permalink
[swift6] add credentials by default (#19885)
Browse files Browse the repository at this point in the history
  • Loading branch information
4brunu authored Oct 16, 2024
1 parent 0a39a17 commit 38dac13
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ import Alamofire{{/useAlamofire}}
self.openAPIClient = openAPIClient
addHeaders(openAPIClient.customHeaders)
addCredential()
}

{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} func addHeaders(_ aHeaders: [String: String]) {
Expand Down Expand Up @@ -161,9 +162,8 @@ import Alamofire{{/useAlamofire}}
return self
}

{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} func addCredential() -> Self {
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand All @@ -103,9 +104,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand Down Expand Up @@ -138,9 +139,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand Down Expand Up @@ -124,9 +125,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand All @@ -89,9 +90,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand All @@ -89,9 +90,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand Down Expand Up @@ -124,9 +125,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand All @@ -89,9 +90,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand All @@ -89,9 +90,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand All @@ -89,9 +90,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ internal class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

internal func addHeaders(_ aHeaders: [String: String]) {
Expand All @@ -89,9 +90,8 @@ internal class RequestBuilder<T>: @unchecked Sendable {
return self
}

internal func addCredential() -> Self {
internal func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand All @@ -89,9 +90,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand All @@ -91,9 +92,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand Down Expand Up @@ -124,9 +125,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down

0 comments on commit 38dac13

Please sign in to comment.