From aa9592e2a5002843b185a4fa66a14c9ed68152b5 Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Tue, 20 Jun 2017 19:52:42 +0300 Subject: [PATCH] Doc tweaks (#686) --- CHANGELOG.md | 2 +- DISTRO_README.md | 1 + FAQ.md | 6 ++++-- samples/androidNativeActivity/README.md | 4 ++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19a74b54157..9b0640d3e9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ ## v0.3 (Jun 2017) ## * Preliminary support for x86-64 Windows hosts and targets * Support for producing native activities on 32- and 64-bit Android targets - * Extended standard library (bitsets, regular expression) + * Extended standard library (bitsets, character classification, regular expression) * Preliminary support for Kotlin/Native library format (.klib) * Preliminary source-level debugging support (stepping only, no variable inspection) * Compiler switch `-entry` to select entry point diff --git a/DISTRO_README.md b/DISTRO_README.md index 56eebd9e6a0..35cc55f1a61 100644 --- a/DISTRO_README.md +++ b/DISTRO_README.md @@ -19,6 +19,7 @@ without need to ship an additional execution runtime. * `tensorflow` - simple client for TensorFlow Machine Intelligence library * `tetris` - Tetris game implementation (using SDL2 for rendering) * `win32` - trivial Win32 application + * `androidNativeActivity` - Android Native Activity rendering 3D graphics using GLES2 See `README.md` in each sample directory for more information and build instructions. diff --git a/FAQ.md b/FAQ.md index f320614b58c..0788b03468f 100644 --- a/FAQ.md +++ b/FAQ.md @@ -1,10 +1,12 @@ Q: How do I run my program? A: Define top level function `fun main(args: Array)`, please ensure it's not -in a package. +in a package. Also compiler switch `-entry` could be use to make any function taking +`Array` and returning `Unit` be an entry point. Q: How do I create shared library? A: It is not possible at the moment. Currently Kotlin/Native could be used to produce either _Kotlin/Native_ own library format, which can be statically linked with application -or an executable for target. +or an executable for target. For example, for Android targets compiler produces shared libraries +by default (as required for _Native Activity_). \ No newline at end of file diff --git a/samples/androidNativeActivity/README.md b/samples/androidNativeActivity/README.md index 04b8f5c1f03..dc16fa22f1a 100644 --- a/samples/androidNativeActivity/README.md +++ b/samples/androidNativeActivity/README.md @@ -6,5 +6,5 @@ Please make sure that Android SDK version 25 is installed, using Android SDK man To build use `ANDROID_HOME= ../gradlew buildApk`. -Run `adb install build/outputs/apk/androidNativeActivity-arm-debug.apk` to deploy the apk on Android device or emulator -(note that only ARM-based devices are currently supported). +Run `adb install build/outputs/apk/androidNativeActivity-arm-debug.apk` to deploy the apk on the Android +device or emulator (note that only ARM-based devices are currently supported).