mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
[Swift][client] make alamofire version more flexible and build projects on CI before running unit tests (#20913)
* [Swift][client] CI first build the projects then run the unit tests * [Swift][client] make alamofire version more flexible
This commit is contained in:
parent
4c1257a2b6
commit
298d6c2200
@ -1,4 +1,4 @@
|
||||
{{#useAlamofire}}
|
||||
github "Alamofire/Alamofire" = 5.10.2{{/useAlamofire}}{{#usePromiseKit}}
|
||||
github "Alamofire/Alamofire" ~> 5.10{{/useAlamofire}}{{#usePromiseKit}}
|
||||
github "mxcl/PromiseKit" ~> 8.1{{/usePromiseKit}}{{#useRxSwift}}
|
||||
github "ReactiveX/RxSwift" ~> 6.8{{/useRxSwift}}
|
||||
|
@ -25,7 +25,7 @@ let package = Package(
|
||||
dependencies: [
|
||||
// Dependencies declare other packages that this package depends on.
|
||||
{{#useAlamofire}}
|
||||
.package(url: "https://github.com/Alamofire/Alamofire", exact: "5.10.2"),
|
||||
.package(url: "https://github.com/Alamofire/Alamofire", .upToNextMajor(from: "5.10.2")),
|
||||
{{/useAlamofire}}
|
||||
{{#usePromiseKit}}
|
||||
.package(url: "https://github.com/mxcl/PromiseKit", .upToNextMajor(from: "8.1.2")),
|
||||
|
@ -27,7 +27,7 @@ Pod::Spec.new do |s|
|
||||
{{/podDocumentationURL}}
|
||||
s.source_files = '{{swiftPackagePath}}{{^swiftPackagePath}}{{#useSPMFileStructure}}Sources/{{projectName}}{{/useSPMFileStructure}}{{^useSPMFileStructure}}{{projectName}}/Classes{{/useSPMFileStructure}}{{/swiftPackagePath}}/**/*.swift'
|
||||
{{#useAlamofire}}
|
||||
s.dependency 'Alamofire', '5.10.2'
|
||||
s.dependency 'Alamofire', '~> 5.10'
|
||||
{{/useAlamofire}}
|
||||
{{#usePromiseKit}}
|
||||
s.dependency 'PromiseKit/CorePromise', '~> 8.1'
|
||||
|
@ -1 +1 @@
|
||||
github "Alamofire/Alamofire" = 5.10.2
|
||||
github "Alamofire/Alamofire" ~> 5.10
|
||||
|
@ -19,7 +19,7 @@ let package = Package(
|
||||
],
|
||||
dependencies: [
|
||||
// Dependencies declare other packages that this package depends on.
|
||||
.package(url: "https://github.com/Alamofire/Alamofire", exact: "5.10.2"),
|
||||
.package(url: "https://github.com/Alamofire/Alamofire", .upToNextMajor(from: "5.10.2")),
|
||||
],
|
||||
targets: [
|
||||
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
|
||||
|
@ -11,5 +11,5 @@ Pod::Spec.new do |s|
|
||||
s.homepage = 'https://github.com/openapitools/openapi-generator'
|
||||
s.summary = 'PetstoreClient'
|
||||
s.source_files = 'Sources/PetstoreClient/**/*.swift'
|
||||
s.dependency 'Alamofire', '5.10.2'
|
||||
s.dependency 'Alamofire', '~> 5.10'
|
||||
end
|
||||
|
@ -1,3 +1,3 @@
|
||||
github "Alamofire/Alamofire" = 5.10.2
|
||||
github "Alamofire/Alamofire" ~> 5.10
|
||||
github "mxcl/PromiseKit" ~> 8.1
|
||||
github "ReactiveX/RxSwift" ~> 6.8
|
||||
|
@ -19,7 +19,7 @@ let package = Package(
|
||||
],
|
||||
dependencies: [
|
||||
// Dependencies declare other packages that this package depends on.
|
||||
.package(url: "https://github.com/Alamofire/Alamofire", exact: "5.10.2"),
|
||||
.package(url: "https://github.com/Alamofire/Alamofire", .upToNextMajor(from: "5.10.2")),
|
||||
.package(url: "https://github.com/mxcl/PromiseKit", .upToNextMajor(from: "8.1.2")),
|
||||
.package(url: "https://github.com/ReactiveX/RxSwift", .upToNextMajor(from: "6.8.0")),
|
||||
],
|
||||
|
@ -11,7 +11,7 @@ Pod::Spec.new do |s|
|
||||
s.homepage = 'https://github.com/openapitools/openapi-generator'
|
||||
s.summary = 'PetstoreClient'
|
||||
s.source_files = 'Sources/PetstoreClient/**/*.swift'
|
||||
s.dependency 'Alamofire', '5.10.2'
|
||||
s.dependency 'Alamofire', '~> 5.10'
|
||||
s.dependency 'PromiseKit/CorePromise', '~> 8.1'
|
||||
s.dependency 'RxSwift', '~> 6.8'
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user