Skip to content

Commit

Permalink
Update podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-perry committed Apr 8, 2021
1 parent 71235db commit b0fd7d7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions ApolloCombine.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ApolloCombine'
s.version = '0.3.1'
s.version = '0.4.0'
s.author = { 'Joel Perry' => '[email protected]' }
s.homepage = 'https://github.com/joel-perry/ApolloCombine'
s.license = { :type => 'MIT', :file => 'LICENSE' }
Expand All @@ -17,7 +17,7 @@ Pod::Spec.new do |s|
s.source_files = 'Sources/ApolloCombine/*.swift'

s.weak_frameworks = 'SwiftUI', 'Combine'
s.dependency 'Apollo/Core', '>=0.34.0'
s.dependency 'Apollo/Core', '>=0.38.0'
s.swift_version = '5.2'

end
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let package = Package(
dependencies: [
.package(name: "Apollo",
url: "https://github.com/apollographql/apollo-ios.git",
.upToNextMajor(from: "0.34.0"))
.upToNextMajor(from: "0.38.0"))
],
targets: [
.target(name: "ApolloCombine", dependencies: [.product(name: "Apollo", package: "Apollo")])
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@

A collection of Combine publishers for the [Apollo iOS client](https://github.com/apollographql/apollo-ios).

## Versions
The Apollo iOS client uses a new networking stack beginning with 0.34.0, so the version of ApolloCombine you should use depends on whether you have adopted this change.

- Use ApolloCombine release 0.2.2 if you have not upgraded to the new networking stack
- Use ApolloCombine release 0.3.0 and above if you are using the new networking stack

## Usage
The extension to ApolloClientProtocol (in the aptly named `ApolloClientExtensions`) includes methods whose inputs mirror the existing ApolloClientProtocol operation methods. Instead of including a result handler, though, these methods return Combine publishers that deliver the results of the operation to subscribers.

Expand Down
2 changes: 1 addition & 1 deletion Sources/ApolloCombine/ApolloClientExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public extension ApolloClientProtocol {
/// Request to clear the cache
///
/// - Parameters:
/// - callbackQueue: The queue to fall back on. Defaults to the main queue.
/// - callbackQueue: The queue to call back on. Defaults to the main queue.
/// - Returns: A publisher that delivers results from the clear operaion.
func clearCachePublisher(queue: DispatchQueue = .main) -> Publishers.ApolloClearCache {
let config = Publishers.ApolloClearCacheConfiguration(client: self,
Expand Down

0 comments on commit b0fd7d7

Please sign in to comment.