[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:
Bruno Coelho 2025-03-17 21:05:43 +00:00 committed by GitHub
parent 4c1257a2b6
commit 298d6c2200
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 9 additions and 9 deletions

View File

@ -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}}

View File

@ -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")),

View File

@ -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'

View File

@ -1 +1 @@
github "Alamofire/Alamofire" = 5.10.2
github "Alamofire/Alamofire" ~> 5.10

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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")),
],

View File

@ -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