- Xcode version 15.0 (15A240d)
- pod version 1.13.0
- target iOS 13.0
- Install
git flow
command
$ brew install git-flow
- Clone this code in your PC
- Change a branch to
develop
- Install packages
$ pod install
- Open project with Xcode
$ open iOSEngineerCodeCheck.xcworkspace
- Create one ViewController and one Stroyboard for one screen
- Use Redux
Initial | Searching | Detail |
---|---|---|
iPad |
---|
$ xcodebuild -showBuildSettings | grep "PROJECT"
- Install Apollo sdk
$ npm install -g apollo
- node 14.3.0
- Get GitHub access token
save in ``./github-access-token.json`(setting .gitignore)
- Get GitHub API Schema
$ apollo schema:download --endpoint="https://api.github.com/graphql" --header "Authorization: Bearer {ACCESS_TOKEN}"
- Create query.graphql
- Install Apollo, CLI as SwiftPackageManager doc
- Create config file
$ ./apollo-ios-cli init --schema-name GitHubGraphQL --module-type swiftPackageManager
- Update
apollo-codegen-config.json
as following;
"schemaSearchPaths" : [
"./schema.json"
]
- Generate Package
$ ./apollo-ios-cli generate
- Add Package(GitHubGraphQL) in Xcode project
- Using SwiftPackageManager
- Select Xcode > File > Add Package Dependencies... > Add Local...
- Select GitHubGraphQL in root and select the target
❗️ GraphQL Package is belong to gitignore like Pods because of large data