-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Apollo to 1.0.0 and use via SPM Plugins
- Loading branch information
Showing
24 changed files
with
196 additions
and
1,784 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"pins" : [ | ||
{ | ||
"identity" : "apollo-ios", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apollographql/apollo-ios", | ||
"state" : { | ||
"revision" : "33065d3b3c97fc35ac42bf28f826cac6c61c779e", | ||
"version" : "1.0.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "inflectorkit", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/mattt/InflectorKit", | ||
"state" : { | ||
"revision" : "d8cbcc04972690aaa5fc760a2b9ddb3e9f0decd7", | ||
"version" : "1.0.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "sqlite.swift", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/stephencelis/SQLite.swift.git", | ||
"state" : { | ||
"revision" : "4d543d811ee644fa4cc4bfa0be996b4dd6ba0f54", | ||
"version" : "0.13.3" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-argument-parser", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-argument-parser.git", | ||
"state" : { | ||
"revision" : "9f39744e025c7d377987f30b03770805dcb0bcd1", | ||
"version" : "1.1.4" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-collections", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-collections", | ||
"state" : { | ||
"revision" : "f504716c27d2e5d4144fa4794b12129301d17729", | ||
"version" : "1.0.3" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
// | ||
|
||
import Apollo | ||
import ApolloAPI | ||
import Foundation | ||
|
||
public struct ApolloGraphQLProvider { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
// | ||
|
||
import Apollo | ||
import ApolloAPI | ||
import Foundation | ||
|
||
// sourcery: AutoMockable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
// swiftlint:disable all | ||
|
||
import Apollo | ||
import ApolloAPI | ||
import Foundation | ||
import GraphQLProvider | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...RocketToolkit/Sources/RocketToolkit/NetworkModels/Apollo/Schema/SchemaConfiguration.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// @generated | ||
// This file was automatically generated and can be edited to | ||
// provide custom configuration for a generated GraphQL schema. | ||
// | ||
// Any changes to this file will not be overwritten by future | ||
// code generation execution. | ||
|
||
import ApolloAPI | ||
|
||
enum SchemaConfiguration: ApolloAPI.SchemaConfiguration { | ||
static func cacheKeyInfo(for type: Object, object: JSONObject) -> CacheKeyInfo? { | ||
// Implement this function to configure cache key resolution for your schema types. | ||
return nil | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
ios/DataLayer/Toolkits/RocketToolkit/apollo-codegen-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"schemaName": "rocket", | ||
"schemaDownloadConfiguration": { | ||
"downloadMethod": { | ||
"introspection": { | ||
"endpointURL": "https://apollo-fullstack-tutorial.herokuapp.com/graphql", | ||
"httpMethod": { | ||
"POST": {} | ||
}, | ||
"includeDeprecatedInputValues": false, | ||
"outputFormat": "SDL" | ||
} | ||
}, | ||
"downloadTimeout": 60, | ||
"headers": [], | ||
"outputPath": "../../Toolkits/RocketToolkit/schema.graphqls" | ||
}, | ||
"input": { | ||
"operationSearchPaths": [ | ||
"./Sources/RocketToolkit/NetworkQueries/*.graphql" | ||
], | ||
"schemaSearchPaths": [ | ||
"./schema.graphqls" | ||
] | ||
}, | ||
"output": { | ||
"schemaTypes": { | ||
"path": "./Sources/RocketToolkit/NetworkModels/Apollo", | ||
"moduleType": { | ||
"embeddedInTarget": { | ||
"name": "RocketToolkit" | ||
} | ||
} | ||
}, | ||
"operations": { | ||
"inSchemaModule": {} | ||
}, | ||
"testMocks": { | ||
"absolute": { | ||
"path": "./Sources/RocketToolkitMocks" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.