Expand AndroidSourceSet#kotlinSourceSet to AndroidSourceSet#kotlinSourceSetOrNull
This commit is contained in:
committed by
Sebastian Sellmair
parent
3e5cbf324d
commit
3f98e2974c
+4
-1
@@ -35,11 +35,14 @@ internal fun syncKotlinAndAndroidSourceSets(target: KotlinAndroidTarget) {
|
||||
}
|
||||
|
||||
internal var AndroidSourceSet.kotlinSourceSet: KotlinSourceSet
|
||||
get() = getConvention(KOTLIN_DSL_NAME) as KotlinSourceSet
|
||||
get() = checkNotNull(kotlinSourceSetOrNull) { "Missing kotlinSourceSet for Android source set $name" }
|
||||
private set(value) {
|
||||
addConvention(KOTLIN_DSL_NAME, value)
|
||||
}
|
||||
|
||||
internal val AndroidSourceSet.kotlinSourceSetOrNull: KotlinSourceSet?
|
||||
get() = getConvention(KOTLIN_DSL_NAME) as? KotlinSourceSet
|
||||
|
||||
private fun createDefaultDependsOnEdges(
|
||||
target: KotlinAndroidTarget,
|
||||
kotlinSourceSet: KotlinSourceSet,
|
||||
|
||||
Reference in New Issue
Block a user