[Gradle][Minor] Add assertion on KotlinAndroidTarget checking components do not get created to early
KT-60159
This commit is contained in:
committed by
Space Team
parent
2734207b52
commit
93f8e21e9e
+1
@@ -150,6 +150,7 @@ abstract class KotlinAndroidTarget @Inject constructor(
|
||||
}
|
||||
|
||||
private fun AndroidProjectHandler.doCreateComponents(): Set<KotlinTargetComponent> {
|
||||
assert(project.state.executed) { "Android: doCreateComponents requires 'afterEvaluate' based project state" }
|
||||
|
||||
val publishableVariants = mutableListOf<BaseVariant>()
|
||||
.apply { project.forAllAndroidVariants { add(it) } }
|
||||
|
||||
Reference in New Issue
Block a user