[swift5][client] code formatting and dependencies ordering (#10370)

This commit is contained in:
Bruno Coelho 2021-09-13 13:00:20 +01:00 committed by GitHub
parent 495f6eb30c
commit 2732c45cc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
34 changed files with 32 additions and 45 deletions

View File

@ -1,4 +1,4 @@
{{#useAlamofire}}github "Alamofire/Alamofire" ~> 5.4.3{{/useAlamofire}}{{#usePromiseKit}} github "Flight-School/AnyCodable" ~> 0.6.1{{#useAlamofire}}
github "Alamofire/Alamofire" ~> 5.4.3{{/useAlamofire}}{{#usePromiseKit}}
github "mxcl/PromiseKit" ~> 6.15.3{{/usePromiseKit}}{{#useRxSwift}} github "mxcl/PromiseKit" ~> 6.15.3{{/usePromiseKit}}{{#useRxSwift}}
github "ReactiveX/RxSwift" ~> 6.2.0{{/useRxSwift}} github "ReactiveX/RxSwift" ~> 6.2.0{{/useRxSwift}}
github "Flight-School/AnyCodable" ~> 0.6.1

View File

@ -235,5 +235,4 @@ extension Set: RequestDecodable where Element: Content {
extension Set: Content where Element: Content { } extension Set: Content where Element: Content { }
extension AnyCodable: Content {} extension AnyCodable: Content {}{{/useVapor}}
{{/useVapor}}

View File

@ -35,15 +35,15 @@ let package = Package(
{{#useAlamofire}} {{#useAlamofire}}
.package(url: "https://github.com/Alamofire/Alamofire", from: "5.4.3"), .package(url: "https://github.com/Alamofire/Alamofire", from: "5.4.3"),
{{/useAlamofire}} {{/useAlamofire}}
{{#useVapor}}
.package(url: "https://github.com/vapor/vapor", from: "4.0.0")
{{/useVapor}}
{{#usePromiseKit}} {{#usePromiseKit}}
.package(url: "https://github.com/mxcl/PromiseKit", from: "6.15.3"), .package(url: "https://github.com/mxcl/PromiseKit", from: "6.15.3"),
{{/usePromiseKit}} {{/usePromiseKit}}
{{#useRxSwift}} {{#useRxSwift}}
.package(url: "https://github.com/ReactiveX/RxSwift", from: "6.2.0"), .package(url: "https://github.com/ReactiveX/RxSwift", from: "6.2.0"),
{{/useRxSwift}} {{/useRxSwift}}
{{#useVapor}}
.package(url: "https://github.com/vapor/vapor", from: "4.0.0")
{{/useVapor}}
], ],
targets: [ targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets are the basic building blocks of a package. A target can define a module or a test suite.

View File

@ -33,14 +33,14 @@ Pod::Spec.new do |s|
s.documentation_url = '{{.}}' s.documentation_url = '{{.}}'
{{/podDocumentationURL}} {{/podDocumentationURL}}
s.source_files = '{{swiftPackagePath}}{{^swiftPackagePath}}{{#useSPMFileStructure}}Sources/{{projectName}}{{/useSPMFileStructure}}{{^useSPMFileStructure}}{{projectName}}/Classes{{/useSPMFileStructure}}{{/swiftPackagePath}}/**/*.swift' s.source_files = '{{swiftPackagePath}}{{^swiftPackagePath}}{{#useSPMFileStructure}}Sources/{{projectName}}{{/useSPMFileStructure}}{{^useSPMFileStructure}}{{projectName}}/Classes{{/useSPMFileStructure}}{{/swiftPackagePath}}/**/*.swift'
s.dependency 'AnyCodable-FlightSchool', '~> 0.6.1'
{{#useAlamofire}}
s.dependency 'Alamofire', '~> 5.4.3'
{{/useAlamofire}}
{{#usePromiseKit}} {{#usePromiseKit}}
s.dependency 'PromiseKit/CorePromise', '~> 6.15.3' s.dependency 'PromiseKit/CorePromise', '~> 6.15.3'
{{/usePromiseKit}} {{/usePromiseKit}}
{{#useRxSwift}} {{#useRxSwift}}
s.dependency 'RxSwift', '~> 6.2.0' s.dependency 'RxSwift', '~> 6.2.0'
{{/useRxSwift}} {{/useRxSwift}}
{{#useAlamofire}}
s.dependency 'Alamofire', '~> 5.4.3'
{{/useAlamofire}}
s.dependency 'AnyCodable-FlightSchool', '~> 0.6.1'
end end

View File

@ -13,6 +13,6 @@ targets:
scheme: {} scheme: {}
dependencies: dependencies:
- carthage: AnyCodable{{#useAlamofire}} - carthage: AnyCodable{{#useAlamofire}}
- carthage: Alamofire{{/useAlamofire}}{{#useRxSwift}} - carthage: Alamofire{{/useAlamofire}}{{#usePromiseKit}}
- carthage: RxSwift{{/useRxSwift}}{{#usePromiseKit}} - carthage: PromiseKit{{/usePromiseKit}}{{#useRxSwift}}
- carthage: PromiseKit{{/usePromiseKit}} - carthage: RxSwift{{/useRxSwift}}

View File

@ -1,2 +1,2 @@
github "Alamofire/Alamofire" ~> 5.4.3
github "Flight-School/AnyCodable" ~> 0.6.1 github "Flight-School/AnyCodable" ~> 0.6.1
github "Alamofire/Alamofire" ~> 5.4.3

View File

@ -11,6 +11,6 @@ Pod::Spec.new do |s|
s.homepage = 'https://github.com/openapitools/openapi-generator' s.homepage = 'https://github.com/openapitools/openapi-generator'
s.summary = 'PetstoreClient' s.summary = 'PetstoreClient'
s.source_files = 'PetstoreClient/Classes/**/*.swift' s.source_files = 'PetstoreClient/Classes/**/*.swift'
s.dependency 'Alamofire', '~> 5.4.3'
s.dependency 'AnyCodable-FlightSchool', '~> 0.6.1' s.dependency 'AnyCodable-FlightSchool', '~> 0.6.1'
s.dependency 'Alamofire', '~> 5.4.3'
end end

View File

@ -1,2 +1 @@
github "Flight-School/AnyCodable" ~> 0.6.1 github "Flight-School/AnyCodable" ~> 0.6.1

View File

@ -1,2 +1 @@
github "Flight-School/AnyCodable" ~> 0.6.1 github "Flight-School/AnyCodable" ~> 0.6.1

View File

@ -1,2 +1 @@
github "Flight-School/AnyCodable" ~> 0.6.1 github "Flight-School/AnyCodable" ~> 0.6.1

View File

@ -1,2 +1 @@
github "Flight-School/AnyCodable" ~> 0.6.1 github "Flight-School/AnyCodable" ~> 0.6.1

View File

@ -1,2 +1 @@
github "Flight-School/AnyCodable" ~> 0.6.1 github "Flight-School/AnyCodable" ~> 0.6.1

View File

@ -1,2 +1 @@
github "Flight-School/AnyCodable" ~> 0.6.1 github "Flight-School/AnyCodable" ~> 0.6.1

View File

@ -1,3 +1,2 @@
github "mxcl/PromiseKit" ~> 6.15.3
github "Flight-School/AnyCodable" ~> 0.6.1 github "Flight-School/AnyCodable" ~> 0.6.1
github "mxcl/PromiseKit" ~> 6.15.3

View File

@ -11,6 +11,6 @@ Pod::Spec.new do |s|
s.homepage = 'https://github.com/openapitools/openapi-generator' s.homepage = 'https://github.com/openapitools/openapi-generator'
s.summary = 'PetstoreClient' s.summary = 'PetstoreClient'
s.source_files = 'PetstoreClient/Classes/**/*.swift' s.source_files = 'PetstoreClient/Classes/**/*.swift'
s.dependency 'PromiseKit/CorePromise', '~> 6.15.3'
s.dependency 'AnyCodable-FlightSchool', '~> 0.6.1' s.dependency 'AnyCodable-FlightSchool', '~> 0.6.1'
s.dependency 'PromiseKit/CorePromise', '~> 6.15.3'
end end

View File

@ -1,2 +1 @@
github "Flight-School/AnyCodable" ~> 0.6.1 github "Flight-School/AnyCodable" ~> 0.6.1

View File

@ -1,2 +1 @@
github "Flight-School/AnyCodable" ~> 0.6.1 github "Flight-School/AnyCodable" ~> 0.6.1

View File

@ -1,3 +1,2 @@
github "ReactiveX/RxSwift" ~> 6.2.0
github "Flight-School/AnyCodable" ~> 0.6.1 github "Flight-School/AnyCodable" ~> 0.6.1
github "ReactiveX/RxSwift" ~> 6.2.0

View File

@ -11,6 +11,6 @@ Pod::Spec.new do |s|
s.homepage = 'https://github.com/openapitools/openapi-generator' s.homepage = 'https://github.com/openapitools/openapi-generator'
s.summary = 'PetstoreClient' s.summary = 'PetstoreClient'
s.source_files = 'PetstoreClient/Classes/**/*.swift' s.source_files = 'PetstoreClient/Classes/**/*.swift'
s.dependency 'RxSwift', '~> 6.2.0'
s.dependency 'AnyCodable-FlightSchool', '~> 0.6.1' s.dependency 'AnyCodable-FlightSchool', '~> 0.6.1'
s.dependency 'RxSwift', '~> 6.2.0'
end end

View File

@ -1,2 +1 @@
github "Flight-School/AnyCodable" ~> 0.6.1 github "Flight-School/AnyCodable" ~> 0.6.1

View File

@ -1,2 +1 @@
github "Flight-School/AnyCodable" ~> 0.6.1 github "Flight-School/AnyCodable" ~> 0.6.1