com.android.build.gradle.api
[Java] Interface VariantControl


public interface VariantControl

Interface for variant control, allowing to query a variant for some base data and allowing to disable some variants.


Method Summary
BuildType getBuildType()

Returns the Build Type.

ProductFlavor getDefaultConfig()

Returns the ProductFlavor that represents the default config.

java.util.List getFlavors()

Returns the list of flavors, or an empty list.

void setIgnore(boolean ignore)

Sets whether or not to ignore this particular variant.

 

Method Detail

getBuildType

@NonNull
public BuildType getBuildType()
Returns the Build Type.


getDefaultConfig

@NonNull
public ProductFlavor getDefaultConfig()
Returns the ProductFlavor that represents the default config.


getFlavors

@NonNull
public java.util.List getFlavors()
Returns the list of flavors, or an empty list.


setIgnore

public void setIgnore(boolean ignore)
Sets whether or not to ignore this particular variant. Default is false.
Parameters:
ignore - whether to ignore the variant


 

Copyright (C) 2012 The Android Open Source Project