ocelotgraphql / ios Goto Github PK
View Code? Open in Web Editor NEWπ‘π GraphQL at your fingertips
Home Page: https://ocelotgraphql.com
License: MIT License
π‘π GraphQL at your fingertips
Home Page: https://ocelotgraphql.com
License: MIT License
The Playground
feature module will hold models and logic for Playground
creation and editing. We'll start the implementation by creating a UIDocument
subclass called Playground
.
Presenter
& Coordinator
are two protocols that help us to interface between the app and feature modules. A Presenter
is an abstraction for something like UINavigationController
, whereas Coordinator
helps to manage the flow of a specific scene.
As stated in the wiki, Playgrounds will be stored in .ocelotplayground
package files. We'll start to implement this by exporting a UTI
from the app module and using this UTI
to create a new Ocelot Playground
document type.
The exported UTI (com.ocelotgraphql.playground
) will then be used to initialize the UIDocumentBrowserViewController
in #11.
The CommonUI
module will include shared extensions for UIKit
and components used by multiple feature modules.
Instead of using URLSession
directly we want to build an abstraction on top which allows us to mock the networking inside unit tests. The new NetworkSession
protocol will be added to the Common
module.
NetworkSession
Currently, we can create new Playgrounds from the GitHub Playground Template, but we cannot edit them. The basic Playground editing functionality will be split across multiple issues (and branches), while this issue is specifically for opening a Playground and showing a barebone UI displaying the Playground's contents without any editing functionality.
AppCoordinator
when a Playground has been openedEditorCoordinator
EditorViewController
Currently, the App
module uses automatic signing. Instead, we'll use Fastlane's match
to automate this process and move back to manual signing.
In order to make this app useful, we need to add a Playground editor. This will be part of the EditorUI
module.
PlaygroundViewController
PlaygroundEditorViewController
PlaygroundResultViewController
PlaygroundResultViewController
The PlaygroundBrowserUI
feature module will show a UIDocumentBrowserViewController
for opening .ocelotplayground
files.
According to the wiki page about App Architecture, we'll first have to create the App
module. It will be based on the Single-View-Application
template, but without the Main.storyboard
.
We'll use Fastlane to automatically release a new TestFlight-BETA.
AppCoordinator
will coordinate all other coordinators. It's part of the App
module and uses a UINavigationController
as its Presenter
.
We'll use Travis CI for continuous integration. Furthermore, Fastlane & Danger will help us to streamline the build and release process.
The CI will be executed by @ocebot, who has to have access to both this repo and our
Fastlane Match
-managed certificates repository.
Until we've built our account system we only support GitHub's GraphQL API. Because we don't want to ask the user for their personal access token each time they open the app, we'll ask once when the user is about to create their first playground and then store the token inside Keychain. This not only stores the token securely but automatically syncs the token via iCloud if the user has iCloud Keychain enabled.
When opening a Playground through Files or the "Recents" popover on iPad, the app is opened without actually opening the selected Playground.
application(_:open:options:)
in AppDelegate
AppCoordinator
to open a Playground at the given URL
Currently, Playgrounds donβt show up in the recents tab of the PlaygroundBrowser.
Some googling lead to the assumption that this is caused by our com.ocelotgraphql.playground
UTI does not conform to public.content
.
As a first step, we should enable the user to create new GitHub GraphQL playgrounds. This will prompt the user to enter their GitHub API authorization token which we can then use as a header value when sending requests.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.