Skip to content

Commit f7c748f

Browse files
committed
Remove ApolloClientProtocol
1 parent 660d1f1 commit f7c748f

File tree

3 files changed

+11
-175
lines changed

3 files changed

+11
-175
lines changed

apollo-ios/Sources/Apollo/ApolloClient.swift

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ public struct RequestConfiguration: Sendable {
1919
}
2020

2121
// MARK: -
22-
/// The `ApolloClient` class implements the core API for Apollo by conforming to `ApolloClientProtocol`.
23-
public final class ApolloClient: ApolloClientProtocol, Sendable {
22+
23+
/// `ApolloClient` is the primary public entry point for interacting with a GraphQL server and a local GraphQL
24+
/// normalized cache. This class provides the
25+
public final class ApolloClient: Sendable {
2426

2527
let networkTransport: any NetworkTransport
2628

@@ -72,7 +74,12 @@ public final class ApolloClient: ApolloClientProtocol, Sendable {
7274
self.context = ClientContext(clientAwarenessMetadata: clientAwarenessMetadata)
7375
}
7476

75-
/// Creates a client with a `RequestChainNetworkTransport` connecting to the specified URL.
77+
/// Convenience initializer that creates a client with a default network transport and cache setup.
78+
///
79+
/// This initializer creates a client that uses an in-memory only cache and a `RequestChainNetworkTransport`
80+
/// connecting to the specified URL with a default interceptor setup.
81+
///
82+
/// The ``InMemoryNormalizedCache`` used by this client does not persist data between application runs.
7683
///
7784
/// - Parameters:
7885
/// - url: The URL of a GraphQL server to connect to.

apollo-ios/Sources/Apollo/ApolloClientProtocol.swift

Lines changed: 0 additions & 171 deletions
This file was deleted.

apollo-ios/Sources/Apollo/GraphQLQueryWatcher.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public actor GraphQLQueryWatcher<Query: GraphQLQuery>: ApolloStoreSubscriber {
3030
/// If set to `false`, the watcher will not receive updates if the cache load fails.
3131
public let refetchOnFailedUpdates: Bool
3232

33-
public var cancelled: Bool = false
33+
public private(set) var cancelled: Bool = false
3434

3535
private var lastFetch: FetchContext?
3636
private var dependentKeys: Set<CacheKey>? = nil

0 commit comments

Comments
 (0)