From a628e3e56a54b644cc30f639ee287c51b5c075bf Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Mon, 22 Oct 2018 12:46:18 +0300 Subject: [PATCH] Update FAQ and GRADLE_PLUGIN.md to decrease mess with Gradle plugins. (#2246) --- FAQ.md | 15 ++++++++++----- GRADLE_PLUGIN.md | 6 ++++++ 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/FAQ.md b/FAQ.md index 97bc50a8d38..b8e4a0fcc87 100644 --- a/FAQ.md +++ b/FAQ.md @@ -43,8 +43,11 @@ A: Use the `-module_name` compiler option or matching Gradle DSL statement, i.e.
```groovy -framework("MyCustomFramework") { - extraOpts '-module_name', 'TheName' +targets { + fromPreset(presets.iosArm64, 'myapp') { + compilations.main.outputKinds 'FRAMEWORK' + compilations.main.extraOpts '-module_name', 'TheName' + } } ``` @@ -58,9 +61,11 @@ or matching Gradle DSL statement, i.e.
```groovy -framework("MyCustomFramework") { - extraOpts '-Xembed-bitcode' // for release binaries - // or '-Xembed-bitcode-marker' for debug binaries +targets { + fromPreset(presets.iosArm64, 'myapp') { + compilations.main.outputKinds 'FRAMEWORK' + compilations.main.extraOpts '-Xembed-bitcode' // for release binaries + // or '-Xembed-bitcode-marker' for debug binaries } ``` diff --git a/GRADLE_PLUGIN.md b/GRADLE_PLUGIN.md index 29bc1645124..9ca207cd763 100644 --- a/GRADLE_PLUGIN.md +++ b/GRADLE_PLUGIN.md @@ -1,5 +1,11 @@ # Kotlin/Native Gradle plugin +### IMPORTANT NOTICE + +This document describes Kotlin/Native experimental Gradle plugin, which is not the plugin yet supported by IDE +or in multiplatform projects. See MPP Gradle plugin [documentation](https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html +for more information. + ### Overview You may use the Gradle plugin to build _Kotlin/Native_ projects. Builds of the plugin are