Update FAQ and GRADLE_PLUGIN.md to decrease mess with Gradle plugins. (#2246)

This commit is contained in:
Nikolay Igotti
2018-10-22 12:46:18 +03:00
committed by GitHub
parent 2c14de9684
commit a628e3e56a
2 changed files with 16 additions and 5 deletions
+10 -5
View File
@@ -43,8 +43,11 @@ A: Use the `-module_name` compiler option or matching Gradle DSL statement, i.e.
<div class="sample" markdown="1" theme="idea" mode="groovy">
```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.
<div class="sample" markdown="1" theme="idea" mode="groovy">
```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
}
```
+6
View File
@@ -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