[Gradle][MPP] KotlinTargetHierarchyBuilderImpl: only build child groups if explicitly included
^KT-53570 Verification Pending
This commit is contained in:
committed by
Space Team
parent
487368d9df
commit
1823e0fad4
+5
-2
@@ -11,8 +11,11 @@ interface KotlinTargetHierarchyBuilder {
|
||||
fun group(name: String, build: KotlinTargetHierarchyBuilder.() -> Unit = {})
|
||||
|
||||
/* low-level APIs */
|
||||
fun includeCompilation(predicate: (KotlinCompilation<*>) -> Boolean)
|
||||
fun excludeCompilation(predicate: (KotlinCompilation<*>) -> Boolean)
|
||||
fun includeCompilationIf(predicate: (KotlinCompilation<*>) -> Boolean)
|
||||
fun excludeCompilationIf(predicate: (KotlinCompilation<*>) -> Boolean)
|
||||
|
||||
fun filterCompilations(predicate: (KotlinCompilation<*>) -> Boolean) =
|
||||
excludeCompilationIf { !predicate(it) }
|
||||
|
||||
/* Convenient groups */
|
||||
fun anyNative()
|
||||
|
||||
Reference in New Issue
Block a user