Skip to content
main
Switch branches/tags
Code

Galway Bus Kotlin Multiplatform project using Jetpack Compose and SwiftUI

Note: if you are trying this project out and aren't in Galway then hit the home icon in title bar to center in Galway so you can see meaningful data!

Jetpack Compose

The main Jetpack Compose based app module is contained in android-app...this is also the version that's now published to Play Store. The previous "legacy" version of app (based on fragments/layouts etc) is still contained in app module but will be removed in near future.

Kotlin Multiplatform

Currently this project is also being used as platform to explore some of the relatively new Kotlin Multiplatform capabilities. There is a Kotlin Multiplatform ShareCode module for example along with sample iOS and macOS apps. Have also written a couple of posts about some of my experiences doing this so far with this project. Also, see PeopleInSpace and BikeShare for other examples of use of Kotlin Multiplatform code.

Google Maps SDK

The project depends on GOOGLE_API_KEY environment variable to be defined for maps functionality to work. Alternatively you can update where this is read in build.gradle

Screenshots

iOS (SwiftUI)

iOS SwiftUI

Android (Jetpack Compose)

Android Jetpack Compose

Languages, libraries and tools used