Files
kotlin-fork/samples/html5Canvas
Dmitriy Dolovov 0bc3c9a6ad Dockerfile updates: (#2556)
- New Dockerfile for running samples
- New Dockerfile for K/N distribution
- Samples: buildSh should finilize buildAllSamples task to avoid concurrency issues
- Samples: Build avoidance for html5Canvas
2019-01-28 23:46:24 +07:00
..
2019-01-28 23:46:24 +07:00

HTML5 Canvas

This sample shows how to use Kotlin/Native to build a WebAssembly application and how to call JavaScript functions from a Kotlin/Native code.

Note

: If you build this sample not from the Kotlin/Native repository, you need to specify a path to a Kotlin/Native distribution. Add the following snippet in gradle.properties:

org.jetbrains.kotlin.native.home=<path-to-distribution>

The default distribution path is $HOME/.konan/kotlin-native-<macos|linux|windows>-<version>.

To build use ../gradlew assemble.

To run use ../gradlew runProgram.