joreilly / BikeShare

SwiftUI, Jetpack Compose, and Compose for Desktop based Kotlin Multiplatform project (using CityBikes API http://api.citybik.es/v2/). Uses Realm for local persistence
Apache License 2.0
693 stars 49 forks source link
android citybikes-api ios jetpack-compose jetpack-room kotlin kotlin-coroutines kotlin-inject kotlin-multiplatform kotlin-multiplatform-mobile kotlin-native kotlinx-serialization ktor mvvm swift swiftui viewmodel wasm

BikeShare

kotlin-version

Jetpack Compose and SwiftUI based Kotlin Multiplatform sample project (based on CityBikes API).

Running on

Related posts:

Screenshot 2022-12-24 at 15 16 22

BikeShare Screenshot

Screenshot 2023-12-02 at 15 01 25 Screenshot 2023-12-02 at 14 10 34

Building

Need to use at least Android Studio Arctic Fox to build/run the Android client.

Requires Xcode 13.2 or later (due to use of new Swift 5.5 concurrency APIs). When opening iOS project remember to open .xcworkspace file (and not .xcodeproj one)

Compose for Desktop client

This client is available in compose-desktop module. Note that you need to use appropriate version of JVM when running (works for example with Java 11)

Note that this makes use of https://github.com/Shusshu/android-flags for flag images shown.

Full set of Kotlin Multiplatform/Compose/SwiftUI samples