Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joreilly/mortycomposekmm
GraphQL based Jetpack Compose and SwiftUI Kotlin Multiplatform project (using https://rickandmortyapi.com/graphql)
https://github.com/joreilly/mortycomposekmm
android apollographql graphql graphql-client ios jetpack-compose kotlin kotlin-multiplatform kotlin-multiplatform-mobile kotlin-native multiplatform swift swiftui
Last synced: about 1 month ago
JSON representation
GraphQL based Jetpack Compose and SwiftUI Kotlin Multiplatform project (using https://rickandmortyapi.com/graphql)
- Host: GitHub
- URL: https://github.com/joreilly/mortycomposekmm
- Owner: joreilly
- License: apache-2.0
- Created: 2020-12-21T21:05:18.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T17:43:56.000Z (6 months ago)
- Last Synced: 2024-05-22T23:17:31.064Z (6 months ago)
- Topics: android, apollographql, graphql, graphql-client, ios, jetpack-compose, kotlin, kotlin-multiplatform, kotlin-multiplatform-mobile, kotlin-native, multiplatform, swift, swiftui
- Language: Kotlin
- Homepage:
- Size: 632 KB
- Stars: 346
- Watchers: 9
- Forks: 26
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MortyCompose
![kotlin-version](https://img.shields.io/badge/kotlin-2.0.0-blue?logo=kotlin)
Kotlin Multiplatform sample that demonstrates use of GraphQL + Jetpack Compose and SwiftUI (based on https://github.com/Dimillian/MortyUI SwiftUI project).
Uses [Apollo library's Kotlin Multiplatform support](https://www.apollographql.com/docs/android/essentials/get-started-multiplatform/) and is also included as one of the samples for that project.The project also now makes use of the KMP support now provided by the Jetpack Paging library.
Related Posts:
* [Jetpack Compose and GraphQL, a very merry combination!](https://johnoreilly.dev/posts/jetpack-compose-graphql/)## Android App
![Characters Android Screenshot](/art/characters_screenshot.png?raw=true)
## iOS App
A small SwiftUI iOS app that uses same shared Kotlin Multiplatform code is in the `iosApp` folder
(shows Characters screen using more or less same SwiftUI code that's in https://github.com/Dimillian/MortyUI)![Characters iOS Screenshot](/art/characters_screenshot_ios.png?raw=true)
## Full set of Kotlin Multiplatform/Compose/SwiftUI samples
* PeopleInSpace (https://github.com/joreilly/PeopleInSpace)
* GalwayBus (https://github.com/joreilly/GalwayBus)
* Confetti (https://github.com/joreilly/Confetti)
* BikeShare (https://github.com/joreilly/BikeShare)
* FantasyPremierLeague (https://github.com/joreilly/FantasyPremierLeague)
* ClimateTrace (https://github.com/joreilly/ClimateTraceKMP)
* GeminiKMP (https://github.com/joreilly/GeminiKMP)
* MortyComposeKMM (https://github.com/joreilly/MortyComposeKMM)
* StarWars (https://github.com/joreilly/StarWars)
* WordMasterKMP (https://github.com/joreilly/WordMasterKMP)
* Chip-8 (https://github.com/joreilly/chip-8)