Android Extensions: Support Android variants and library dependencies (KT-14086, KT-16934)

This commit is contained in:
Yan Zhulanow
2017-05-15 20:55:33 +03:00
committed by Yan Zhulanow
parent 8e9a62d553
commit f4acf404ca
32 changed files with 397 additions and 49 deletions
@@ -22,7 +22,7 @@ import org.gradle.api.tasks.compile.AbstractCompile
class SubpluginOption(val key: String, val value: String)
interface KotlinGradleSubplugin<KotlinCompile : AbstractCompile> {
interface KotlinGradleSubplugin<in KotlinCompile : AbstractCompile> {
fun isApplicable(project: Project, task: KotlinCompile): Boolean
fun apply(
@@ -30,6 +30,7 @@ interface KotlinGradleSubplugin<KotlinCompile : AbstractCompile> {
kotlinCompile: KotlinCompile,
javaCompile: AbstractCompile,
variantData: Any?,
androidProjectHandler: Any?,
javaSourceSet: SourceSet?
): List<SubpluginOption>