Skip to content
项目

关于

基于 SwiftUI、Jetpack Compose、Compose for Desktop 和 Compose for Web 的 Kotlin Multiplatform 项目,使用 CityBikes API(http://api.citybik.es/v2/)。使用 Room 进行本地持久化

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

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

探索相关项目

加载中…