Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 0 additions & 49 deletions Apollo.podspec

This file was deleted.

21 changes: 0 additions & 21 deletions ApolloTestSupport.podspec

This file was deleted.

2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ queryMock.animals = [mockDog]
let generatedSelectionSetMock: AnimalQuery.Data = AnimalQuery.Data.mock(from: queryMock)
```

* `GraphQLNullable` and `GraphQLEnum` from the `ApolloAPI` target are now exported by your generated operations. This prevents you from having to `import ApolloAPI` everywhere that you are consuming your generated models.
* `GraphQLNullable` and `GraphQLEnum` from the `ApolloAPI` target are now exported by your generated operations. This prevents you from having to `import ApolloMigrationAPI` everywhere that you are consuming your generated models.
* `CacheKeyProvider` now supports grouping multiple types that share key uniqueness.
* Lots of performance improvements
* Using `StaticString` instead of `String` in generated files.
Expand Down
4 changes: 2 additions & 2 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 19 additions & 19 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,51 +7,51 @@
import PackageDescription

let package = Package(
name: "Apollo",
name: "ApolloMigration",
platforms: [
.iOS(.v12),
.iOS(.v13),
.macOS(.v10_14),
.tvOS(.v12),
.watchOS(.v5),
.visionOS(.v1),
],
products: [
.library(name: "Apollo", targets: ["Apollo"]),
.library(name: "ApolloAPI", targets: ["ApolloAPI"]),
.library(name: "Apollo-Dynamic", type: .dynamic, targets: ["Apollo"]),
.library(name: "ApolloSQLite", targets: ["ApolloSQLite"]),
.library(name: "ApolloWebSocket", targets: ["ApolloWebSocket"]),
.library(name: "ApolloTestSupport", targets: ["ApolloTestSupport"]),
.library(name: "ApolloMigration", targets: ["ApolloMigration"]),
.library(name: "ApolloMigrationAPI", targets: ["ApolloMigrationAPI"]),
.library(name: "ApolloMigration-Dynamic", type: .dynamic, targets: ["ApolloMigration"]),
.library(name: "ApolloMigrationSQLite", targets: ["ApolloMigrationSQLite"]),
.library(name: "ApolloMigrationWebSocket", targets: ["ApolloMigrationWebSocket"]),
.library(name: "ApolloMigrationTestSupport", targets: ["ApolloMigrationTestSupport"]),
.plugin(name: "InstallCLI", targets: ["Install CLI"])
],
dependencies: [
.package(
url: "https://github.com/stephencelis/SQLite.swift.git",
.upToNextMajor(from: "0.15.1")),
.upToNextMajor(from: "0.13.1")),
],
targets: [
.target(
name: "Apollo",
name: "ApolloMigration",
dependencies: [
"ApolloAPI"
"ApolloMigrationAPI"
],
resources: [
.copy("Resources/PrivacyInfo.xcprivacy")
],
swiftSettings: [.enableUpcomingFeature("ExistentialAny")]
),
.target(
name: "ApolloAPI",
name: "ApolloMigrationAPI",
dependencies: [],
resources: [
.copy("Resources/PrivacyInfo.xcprivacy")
],
swiftSettings: [.enableUpcomingFeature("ExistentialAny")]
),
.target(
name: "ApolloSQLite",
name: "ApolloMigrationSQLite",
dependencies: [
"Apollo",
"ApolloMigration",
.product(name: "SQLite", package: "SQLite.swift"),
],
resources: [
Expand All @@ -60,20 +60,20 @@ let package = Package(
swiftSettings: [.enableUpcomingFeature("ExistentialAny")]
),
.target(
name: "ApolloWebSocket",
name: "ApolloMigrationWebSocket",
dependencies: [
"Apollo"
"ApolloMigration"
],
resources: [
.copy("Resources/PrivacyInfo.xcprivacy")
],
swiftSettings: [.enableUpcomingFeature("ExistentialAny")]
),
.target(
name: "ApolloTestSupport",
name: "ApolloMigrationTestSupport",
dependencies: [
"Apollo",
"ApolloAPI"
"ApolloMigration",
"ApolloMigrationAPI"
],
swiftSettings: [.enableUpcomingFeature("ExistentialAny")]
),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

/// An abstract GraphQL response used for full and incremental responses.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation
import Dispatch
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

/// A cache policy that specifies whether results should be fetched from the server or loaded from the local cache.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

/// The `ApolloClientProtocol` provides the core API for Apollo. This API provides methods to fetch and watch queries, and to perform mutations.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

/// An error interceptor called to allow further examination of error data when an error occurs in the chain.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

/// A protocol to set up a chainable unit of networking work.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

public typealias DidChangeKeysFunc = (Set<CacheKey>, UUID?) -> Void
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

public struct AutomaticPersistedQueryInterceptor: ApolloInterceptor {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

/// An interceptor that reads data from the cache for queries, following the `HTTPRequest`'s `cachePolicy`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

/// An interceptor which writes data to the cache, following the `HTTPRequest`'s `cachePolicy`.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

// MARK: Internal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

/// An accumulator that converts executed data to the correct values for use in a selection set.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

/// The default interceptor provider for typescript-generated code
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

/// A `GraphQLExecutionSource` configured to execute upon the data stored in a ``NormalizedCache``.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

/// A `GraphQLExecutionSource` configured to execute upon the JSON data from the network response
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

/// A `GraphQLExecutionSource` designed for use when the data source is a generated model's
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

@_spi(Execution)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

final class GraphQLDependencyTracker: GraphQLResultAccumulator {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

/// Represents an error encountered during the execution of a GraphQL operation.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

/// A protocol representing a data source for GraphQL data to be executed upon by a
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

@_spi(Execution)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

public struct GraphQLGETTransformer {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

/// A `GraphQLQueryWatcher` is responsible for watching the store, and calling the result handler with a new result
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

/// Represents a complete GraphQL response received from a server.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

/// Represents the result of a GraphQL operation.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

@_spi(Execution)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

enum ResultNormalizerFactory {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#if !COCOAPODS
import ApolloAPI
import ApolloMigrationAPI
#endif

/// An accumulator that maps executed data to create a `SelectionSet`.
Expand Down
Loading