Skip to content

joreilly/BikeShare

Repository files navigation

BikeShare

kotlin-version

Compose Multiplatform and SwiftUI based Kotlin Multiplatform sample project (based on CityBikes API). Uses Circuit and kotlin-inject.

Running on

  • iOS (SwiftUI)
  • Android (Jetpack Compose)
  • Desktop (Compose for Desktop)
  • Web (Wasm based Compose for Web)
  • Swift Executable Package

Related posts:

Building and running

Requires JDK 17+ and a recent Android Studio release with AGP 9.x support (the project uses the new com.android.kotlin.multiplatform.library plugin).

  • Android: ./gradlew :androidApp:installDebug (or run the androidApp configuration in Android Studio)
  • Desktop: ./gradlew :compose-desktop:run
  • Web: ./gradlew :compose-web:wasmJsBrowserDevelopmentRun
  • iOS: open ios/BikeShare/BikeShare.xcodeproj in Xcode and run

BikeShare iOS (SwiftUI)

BikeShare running on desktop (Compose for Desktop) BikeShare running in the browser (Wasm based Compose for Web)

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

Full set of Kotlin Multiplatform/Compose/SwiftUI samples

About

SwiftUI, Jetpack Compose, Compose for Desktop and Compose for Web based Kotlin Multiplatform project (using CityBikes API http://api.citybik.es/v2/). Uses Room for local persistence

Topics

Resources

License

Stars

824 stars

Watchers

14 watching

Forks

Contributors