Update FAQ and GRADLE_PLUGIN.md to decrease mess with Gradle plugins. (#2246)
This commit is contained in:
@@ -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
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user