Skip to content

Commit

Permalink
[swift6] update RXSwift version and pin Alamofire version (#19857)
Browse files Browse the repository at this point in the history
  • Loading branch information
4brunu authored Oct 20, 2024
1 parent cfdb00a commit 266193f
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{#useAlamofire}}github "Alamofire/Alamofire" ~> 5.9{{/useAlamofire}}{{#usePromiseKit}}
{{#useAlamofire}}
# TODO: Alamofire versions 5.10.0 and above are not currently supported. If you need a newer version, please consider submitting a Pull Request with the required changes.
github "Alamofire/Alamofire" = 5.9.1{{/useAlamofire}}{{#usePromiseKit}}
github "mxcl/PromiseKit" ~> 8.1{{/usePromiseKit}}{{#useRxSwift}}
github "ReactiveX/RxSwift" ~> 6.7{{/useRxSwift}}
github "ReactiveX/RxSwift" ~> 6.8{{/useRxSwift}}
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ let package = Package(
dependencies: [
// Dependencies declare other packages that this package depends on.
{{#useAlamofire}}
.package(url: "https://github.com/Alamofire/Alamofire", .upToNextMajor(from: "5.9.1")),
// TODO: Alamofire versions 5.10.0 and above are not currently supported. If you need a newer version, please consider submitting a Pull Request with the required changes.
.package(url: "https://github.com/Alamofire/Alamofire", exact: "5.9.1"),
{{/useAlamofire}}
{{#usePromiseKit}}
.package(url: "https://github.com/mxcl/PromiseKit", .upToNextMajor(from: "8.1.2")),
{{/usePromiseKit}}
{{#useRxSwift}}
.package(url: "https://github.com/ReactiveX/RxSwift", .upToNextMajor(from: "6.7.1")),
.package(url: "https://github.com/ReactiveX/RxSwift", .upToNextMajor(from: "6.8.0")),
{{/useRxSwift}}
{{#useVapor}}
.package(url: "https://github.com/vapor/vapor", from: "4.0.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ 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.9'
# TODO: Alamofire versions 5.10.0 and above are not currently supported. If you need a newer version, please consider submitting a Pull Request with the required changes.
s.dependency 'Alamofire', '5.9.1'
{{/useAlamofire}}
{{#usePromiseKit}}
s.dependency 'PromiseKit/CorePromise', '~> 8.1'
{{/usePromiseKit}}
{{#useRxSwift}}
s.dependency 'RxSwift', '~> 6.7'
s.dependency 'RxSwift', '~> 6.8'
{{/useRxSwift}}
end
3 changes: 2 additions & 1 deletion samples/client/petstore/swift6/alamofireLibrary/Cartfile
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
github "Alamofire/Alamofire" ~> 5.9
# TODO: Alamofire versions 5.10.0 and above are not currently supported. If you need a newer version, please consider submitting a Pull Request with the required changes.
github "Alamofire/Alamofire" = 5.9.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"originHash" : "6fb5b6bfc406365339fcc9d8236adab4f0b7ee38fc666a0f00b4b3b75beb7900",
"originHash" : "82fa799fdb0b54d09f6eef7da70838721a3b0d69ea8499c89924e55e07e47110",
"pins" : [
{
"identity" : "alamofire",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ let package = Package(
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/Alamofire/Alamofire", .upToNextMajor(from: "5.9.1")),
// TODO: Alamofire versions 5.10.0 and above are not currently supported. If you need a newer version, please consider submitting a Pull Request with the required changes.
.package(url: "https://github.com/Alamofire/Alamofire", exact: "5.9.1"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ 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.9'
# TODO: Alamofire versions 5.10.0 and above are not currently supported. If you need a newer version, please consider submitting a Pull Request with the required changes.
s.dependency 'Alamofire', '5.9.1'
end
5 changes: 3 additions & 2 deletions samples/client/petstore/swift6/apiNonStaticMethod/Cartfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
github "Alamofire/Alamofire" ~> 5.9
# TODO: Alamofire versions 5.10.0 and above are not currently supported. If you need a newer version, please consider submitting a Pull Request with the required changes.
github "Alamofire/Alamofire" = 5.9.1
github "mxcl/PromiseKit" ~> 8.1
github "ReactiveX/RxSwift" ~> 6.7
github "ReactiveX/RxSwift" ~> 6.8
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"originHash" : "b14c4fe6a7263c50050b60f25c3f28d6b22d415d0c780c4d5a3494c6c0218ccd",
"originHash" : "766b7b8894983c692454ee57aad3d618580bf90078cad51008d129ddf41ff945",
"pins" : [
{
"identity" : "alamofire",
Expand All @@ -24,8 +24,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/ReactiveX/RxSwift",
"state" : {
"revision" : "b06a8c8596e4c3e8e7788e08e720e3248563ce6a",
"version" : "6.7.1"
"revision" : "c7c7d2cf50a3211fe2843f76869c698e4e417930",
"version" : "6.8.0"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ let package = Package(
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/Alamofire/Alamofire", .upToNextMajor(from: "5.9.1")),
// TODO: Alamofire versions 5.10.0 and above are not currently supported. If you need a newer version, please consider submitting a Pull Request with the required changes.
.package(url: "https://github.com/Alamofire/Alamofire", exact: "5.9.1"),
.package(url: "https://github.com/mxcl/PromiseKit", .upToNextMajor(from: "8.1.2")),
.package(url: "https://github.com/ReactiveX/RxSwift", .upToNextMajor(from: "6.7.1")),
.package(url: "https://github.com/ReactiveX/RxSwift", .upToNextMajor(from: "6.8.0")),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ 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.9'
# TODO: Alamofire versions 5.10.0 and above are not currently supported. If you need a newer version, please consider submitting a Pull Request with the required changes.
s.dependency 'Alamofire', '5.9.1'
s.dependency 'PromiseKit/CorePromise', '~> 8.1'
s.dependency 'RxSwift', '~> 6.7'
s.dependency 'RxSwift', '~> 6.8'
end
2 changes: 1 addition & 1 deletion samples/client/petstore/swift6/rxswiftLibrary/Cartfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

github "ReactiveX/RxSwift" ~> 6.7
github "ReactiveX/RxSwift" ~> 6.8
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let package = Package(
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/ReactiveX/RxSwift", .upToNextMajor(from: "6.7.1")),
.package(url: "https://github.com/ReactiveX/RxSwift", .upToNextMajor(from: "6.8.0")),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ Pod::Spec.new do |s|
s.homepage = 'https://github.com/openapitools/openapi-generator'
s.summary = 'PetstoreClient'
s.source_files = 'PetstoreClient/Classes/**/*.swift'
s.dependency 'RxSwift', '~> 6.7'
s.dependency 'RxSwift', '~> 6.8'
end

0 comments on commit 266193f

Please sign in to comment.