VariantExtensionConfig
@Incubating interface VariantExtensionConfig<VariantT : Variant?>
Configuration object passed to the lambda responsible for creating a com.android.build.api.variant.VariantExtension
for each com.android.build.api.variant.Variant
instance.
Parameters | |
---|---|
<VariantT : Variant?> |
the type of |
Summary
Public functions |
|
---|---|
T |
<T : Any?> buildTypeExtension(extensionType: Class<T?>?) Returns the |
List<T> |
<T : Any?> productFlavorsExtensions(extensionType: Class<T?>?) Returns the |
T |
<T : Any?> projectExtension(extensionType: Class<T?>?) Returns the project (across variants) extension registered through the com.android.build.api.extension.DslExtension.projectExtensionType API. |
Public properties |
|
---|---|
VariantT |
Gets the variant object the |
Public functions
buildTypeExtension
fun <T : Any?> buildTypeExtension(extensionType: Class<T?>?): T
Returns the variant
specific extension registered through the com.android.build.api.extension.DslExtension.buildTypeExtensionType API.
Returns | |
---|---|
T |
the custom extension for the |
productFlavorsExtensions
fun <T : Any?> productFlavorsExtensions(extensionType: Class<T?>?): List<T>
Returns the variant
specific extension registered through the com.android.build.api.extension.DslExtension.productFlavorExtensionType API.
Returns | |
---|---|
List<T> |
a |
projectExtension
fun <T : Any?> projectExtension(extensionType: Class<T?>?): T
Returns the project (across variants) extension registered through the com.android.build.api.extension.DslExtension.projectExtensionType API.
Public properties
variant
val variant: VariantT
Gets the variant object the com.android.build.api.variant.VariantExtension
should be associated with.