- Swift 4.0.3 or later
- iOS 9.0 or later
To run the example project, clone the repo, and run pod install
and carthage update
from the Example directory first. In addition, you must set Github Personal access token.
extension ApiSession: ApiSessionType {
static let shared: ApiSession = {
let token = "" // Your Personal Access Token
return ApiSession(injectToken: { InjectableToken(token: token) })
}()
}
Application structure is like below.
- SearchViewController You can search Github user.
- FavoriteViewController You can stock favorites on memory.
- UserRepositoryViewController You can display a user's repositories.
- RepositoryViewController You can display webpage of repository, and add favorites on memory.
This is test code.
GithubKitForSample is used in this sample project.
marty-suzuki, s1180183@gmail.com
FluxCapacitor is available under the MIT license. See the LICENSE file for more info.