[Gradle] KotlinTargetHierarchy.Module: Respect configuration from Android
KT-34662
This commit is contained in:
committed by
Space Team
parent
7ab6349ad5
commit
5fe6e3edbb
+3
-2
@@ -13,8 +13,9 @@ interface KotlinTargetHierarchyBuilder {
|
||||
fun group(name: String, build: KotlinTargetHierarchyBuilder.() -> Unit = {})
|
||||
|
||||
/* low-level APIs */
|
||||
fun withCompilations(predicate: (KotlinCompilation<*>) -> Boolean)
|
||||
fun withoutCompilations(predicate: (KotlinCompilation<*>) -> Boolean)
|
||||
fun withCompilations(predicate: suspend (KotlinCompilation<*>) -> Boolean)
|
||||
fun withoutCompilations(predicate: suspend (KotlinCompilation<*>) -> Boolean)
|
||||
|
||||
@Deprecated("Use plain 'withoutCompilations(!predicate) instead'", ReplaceWith("withoutCompilations { !predicate(it) }"))
|
||||
fun filterCompilations(predicate: (KotlinCompilation<*>) -> Boolean) = withoutCompilations { !predicate(it) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user