An example of building apps powered by Wire and Kotlin Multiplatform, serving protobuf response.
-
Protocol Buffers: https://developers.google.com/protocol-buffers
-
Kotlin Multiplatform: https://kotlinlang.org/docs/reference/multiplatform.html
-
Jetpack Compose (Android): https://developer.android.com/jetpack/compose/
-
Import this project as a whole.
-
Run the server app:
$./gradlew server:run
- Run the Android app:
$./gradlew android:assembleDebug
or you can import the project with android studio.
- Run the iOS app:
a. Build the protos common: $./gradlew protos:build
b. Open XCode and import the iOS module and run.
Note: Remember: for development purpose we are running on localhost, so you may want to update the pointing address on each client app.
- On IntelliJ/Android Studio, from :server, I cannot reference to generatedSrc of :protos
-> To fix this: Open Module Settings -> Project Settings -> Modules -> Add "Dinosaurs.protos.commonMain" as a Provided Dependency.
-> If necessary, File -> Invalidate Cache and Restart.
Still have issue? File an Issue and we may help you out.
This project is maintained and funded by Nimble.
We love open source and do our part in sharing our work with the community! See our other projects or hire our team to help build your product.