[Gradle] Deduplicate documentation from KotlinHierarchyTemplate.Templates.default and applyDefaultHierarchyTemplate
^KT-58676 Verification Pending
This commit is contained in:
committed by
Space Team
parent
772bcb283d
commit
a03fb02af3
+6
-18
@@ -12,25 +12,13 @@ import org.jetbrains.kotlin.gradle.InternalKotlinGradlePluginApi
|
|||||||
sealed interface KotlinHierarchyTemplate {
|
sealed interface KotlinHierarchyTemplate {
|
||||||
companion object Templates {
|
companion object Templates {
|
||||||
/**
|
/**
|
||||||
* Set's up a 'natural'/'default' hierarchy within [KotlinTarget]'s, inside the project.
|
* Default hierarchy for Kotlin Multiplatform projects.
|
||||||
*
|
* This hierarchy template will be applied to projects 'by default' if the project does not opt-out
|
||||||
* #### Example 1
|
* and is compatible.
|
||||||
*
|
|
||||||
* ```kotlin
|
|
||||||
* kotlin {
|
|
||||||
* applyDefaultHierarchyTemplate() // <- position of this call is not relevant!
|
|
||||||
*
|
|
||||||
* iosX64()
|
|
||||||
* iosArm64()
|
|
||||||
* linuxX64()
|
|
||||||
* linuxArm64()
|
|
||||||
* }
|
|
||||||
* ```
|
|
||||||
*
|
|
||||||
* Will create the following SourceSets:
|
|
||||||
* `[iosMain, iosTest, appleMain, appleTest, linuxMain, linuxTest, nativeMain, nativeTest]
|
|
||||||
*
|
|
||||||
*
|
*
|
||||||
|
* Incompatible projects include:
|
||||||
|
* - projects that setup custom dependsOn edges
|
||||||
|
* - projects that define custom target names matching one of the shared source sets (e.g. linuxX64("linux"))
|
||||||
* Hierarchy:
|
* Hierarchy:
|
||||||
* ```
|
* ```
|
||||||
* common
|
* common
|
||||||
|
|||||||
Reference in New Issue
Block a user