An open API service indexing awesome lists of open source software.

https://github.com/yshrsmz/githubkotlinmppsample


https://github.com/yshrsmz/githubkotlinmppsample

android android-application graphql ios ios-app kotlin kotlin-mpp kotlin-multiplatform sqlite

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# GitHubKNSample

Sample Project of Kotlin Multiplatform(Android/iOS).

It fetches viewer's user info and his repositories.

Currently experimenting with MVI-ish architecture using Kotlin Coroutines.

## Libraries

- Kodein(for DI)
- Ktor(for Networking)
- kgql(for GraphQL)
- SQLDelight(for local cache)
- BuildKonfig(to embed github api token in the code)

## Setup

1. get GitHub API token. needs user scope.
2. create `secret.properties` at the project root directory with following content

```properties
GITHUB_API_TOKEN=PLACE_YOUR_TOKEN
```

### IntelliJ

Tick "tick Delegate IDE build/run actions to gradle"(Settings - Build, Execution, Deployment - Build Tools - Gradle - Runner )