forked from loafle/openapi-generator-original
[swift5][client] code formatting and dependencies ordering (#10370)
This commit is contained in:
parent
495f6eb30c
commit
2732c45cc1
@ -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
|
|
||||||
|
@ -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}}
|
|
||||||
|
@ -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.
|
||||||
|
@ -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
|
||||||
|
@ -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}}
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -1,2 +1 @@
|
|||||||
|
|
||||||
github "Flight-School/AnyCodable" ~> 0.6.1
|
github "Flight-School/AnyCodable" ~> 0.6.1
|
||||||
|
@ -1,2 +1 @@
|
|||||||
|
|
||||||
github "Flight-School/AnyCodable" ~> 0.6.1
|
github "Flight-School/AnyCodable" ~> 0.6.1
|
||||||
|
@ -1,2 +1 @@
|
|||||||
|
|
||||||
github "Flight-School/AnyCodable" ~> 0.6.1
|
github "Flight-School/AnyCodable" ~> 0.6.1
|
||||||
|
@ -1,2 +1 @@
|
|||||||
|
|
||||||
github "Flight-School/AnyCodable" ~> 0.6.1
|
github "Flight-School/AnyCodable" ~> 0.6.1
|
||||||
|
@ -1,2 +1 @@
|
|||||||
|
|
||||||
github "Flight-School/AnyCodable" ~> 0.6.1
|
github "Flight-School/AnyCodable" ~> 0.6.1
|
||||||
|
@ -1,2 +1 @@
|
|||||||
|
|
||||||
github "Flight-School/AnyCodable" ~> 0.6.1
|
github "Flight-School/AnyCodable" ~> 0.6.1
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -1,2 +1 @@
|
|||||||
|
|
||||||
github "Flight-School/AnyCodable" ~> 0.6.1
|
github "Flight-School/AnyCodable" ~> 0.6.1
|
||||||
|
@ -1,2 +1 @@
|
|||||||
|
|
||||||
github "Flight-School/AnyCodable" ~> 0.6.1
|
github "Flight-School/AnyCodable" ~> 0.6.1
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -1,2 +1 @@
|
|||||||
|
|
||||||
github "Flight-School/AnyCodable" ~> 0.6.1
|
github "Flight-School/AnyCodable" ~> 0.6.1
|
||||||
|
@ -1,2 +1 @@
|
|||||||
|
|
||||||
github "Flight-School/AnyCodable" ~> 0.6.1
|
github "Flight-School/AnyCodable" ~> 0.6.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user