A sample app showing how to embed a Golang library in a Kotlin app.
- macOS host
- Golang toolchain
- JVM
See ci.yml
for the versions of Golang and the JVM that this project has been tested with.
Run the Kotlin/Native app with ./gradlew runNativeApp
.
Run the Kotlin/JVM app with ./gradlew runJvmApp
.
- While this is a Kotlin Multiplatform project, I've deliberately avoided the use of
expect
/actual
in the interests of keeping the point of this sample app clear. - The Gradle configuration for this project could be improved. Again, this isn't the focus of this sample.
- This project only supports macOS.
- In its current configuration, this project doesn't support cross-compilation - you can only use the produced binaries on the same architecture as the machine used to build the project. For example, if you have an Apple Silicon Mac, the binaries you build will not work on an Intel Mac.