connectToAndroidVariant

abstract fun connectToAndroidVariant(variant: Any)

Connects the generated sources to the given Android variant. This will look up the most specific source set used by this variant. For an example, "demoDebug"

Parameters

variant

: the BaseVariant to connect to. It is of type Any because DirectoryConnection can be used in non-Android projects, and we don't want the class to fail during loading because of a missing symbol in that case