Switch branches/tags
Find file History
Latest commit a174e65 Sep 23, 2018
Permalink
..
Failed to load latest commit information.
androidNativeActivity [gradle-plugin] Depend on Kotlin 0.9.0-native (#1993) Sep 10, 2018
calculator Small AS tweak. Sep 23, 2018
csvparser [readme] Update gradle plugin readme Aug 31, 2018
curl [gradle-plugin] Depend on Kotlin 0.9.0-native (#1993) Sep 10, 2018
gitchurn [readme] Update gradle plugin readme Aug 31, 2018
globalState [readme] Update gradle plugin readme Aug 31, 2018
gradle/wrapper Provide a task to generate all Gradle wrappers in the project Jun 9, 2018
gtk [readme] Update gradle plugin readme Aug 31, 2018
html5Canvas Minor fixes for samples Feb 12, 2018
libcurl [readme] Update gradle plugin readme Aug 31, 2018
nonBlockingEchoServer Update Kotlin with tests to 1.3.0-dev-391 (#2037) Sep 11, 2018
objc [samples] Switch to the new DSL in some samples Aug 31, 2018
opengl [readme] Update gradle plugin readme Aug 31, 2018
python_extension Fixed samples for 0.9 (#2002) Sep 4, 2018
socket [samples] Switch to the new DSL in some samples Aug 31, 2018
tensorflow [gradle-plugin] Depend on Kotlin 0.9.0-native (#1993) Sep 10, 2018
tetris [readme] Update gradle plugin readme Aug 31, 2018
torch [gradle-plugin] Depend on Kotlin 0.9.0-native (#1993) Sep 10, 2018
uikit [samples] Use gradle properties instead of env vars in Xcode projects Apr 20, 2018
videoplayer [readme] Update gradle plugin readme Aug 31, 2018
weather_function Weather Function Sample (#1746) Aug 7, 2018
win32 Improve Windows interop (#2022) Sep 7, 2018
workers [readme] Update gradle plugin readme Aug 31, 2018
zephyr Fix setting custom path to .konan for Windows Apr 17, 2018
README.md build: Don't run cross_dist in gradle-plugin build Jun 26, 2017
build.gradle [gradle-plugin] Depend on Kotlin 0.9.0-native (#1993) Sep 10, 2018
build.sh v0.3.1 preparations. (#806) Aug 24, 2017
gradle.properties [samples] Explicitly specify gradle plugin version Mar 26, 2018
gradlew build: Use Gradle 4.2 Oct 4, 2017
gradlew.bat build: Use Gradle 4.2 Oct 4, 2017
konan.sh [samples] Allow using KONAN_DATA_DIR in samples Apr 17, 2018
settings.gradle Disable torch and tensorflow samples Aug 20, 2018

README.md

Samples

This directory contains a set of samples demonstrating how one can work with Kotlin/Native. The samples can be built using either command line tools (via build.sh script presented in each sample directory) or using a gradle build. See README.md in sample directories to learn more about specific samples and the building process.

Note: If the samples are built from a source tree (not from a distribution archive) the compiler and the gradle plugin built from the sources are used. So one must build the compiler by running ./gradlew cross_dist from the Kotlin/Native root directory before building samples (see README.md for details).

One may also build all the samples with one command. To build them using the command line tools run:

./build.sh

To build all the samples using the gradle build:

./gradlew build

One also may launch the command line build via a gradle task buildSh (equivalent of ./build.sh executing):

./gradlew buildSh