Skip to content

nimblehq/wire-multiplatform-sample

 
 

Repository files navigation

Protobuf meets Kotlin Multiplatform

An example of building apps powered by Wire and Kotlin Multiplatform, serving protobuf response.

Documentations

Getting started

  1. Import this project as a whole.

  2. Run the server app:

$./gradlew server:run
  1. Run the Android app:
$./gradlew android:assembleDebug

or you can import the project with android studio.

  1. 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.

Troubleshoot

  1. 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.

About

Nimble

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.

Credit to @Egorand and @Square the original author.

Releases

No releases published

Languages

  • Kotlin 69.7%
  • Swift 23.2%
  • Ruby 7.1%