Skip to content
Proyek

Tentang

Proyek Kotlin Multiplatform berbasis SwiftUI, Jetpack Compose, Compose for Desktop, dan Compose for Web (menggunakan CityBikes API http://api.citybik.es/v2/). Menggunakan Room untuk persistensi lokal.

Pengembangan web dan aplikasi

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
+1
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

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.

UI tests

There's a Maestro UI test flow shared by the Android and iOS clients, run by CI on an emulator and a simulator (e.g. maestro test -e APP_ID=dev.johnoreilly.bikeshare maestro/BikeShare.flow).

Full set of Kotlin Multiplatform/Compose/SwiftUI samples

Jelajahi proyek terkait

Memuat…