com.android.builder.model
Interface BuildType

All Superinterfaces:
BaseConfig

public interface BuildType
extends BaseConfig

a Build Type. This is only the configuration of the build type. It does not include the sources or the dependencies. Those are available on the container or in the artifact info.

See Also:
BuildTypeContainer, BaseArtifact.getDependencies()

Method Summary
 java.lang.String getApplicationIdSuffix()
          Returns the application id suffix applied to this build type.
 java.lang.String getName()
          Returns the name of the build type.
 NdkConfig getNdkConfig()
          Returns the NDK configuration.
 int getRenderscriptOptimLevel()
          Returns the optimization level of the renderscript compilation.
 java.lang.String getVersionNameSuffix()
          Returns the version name suffix.
 boolean isDebuggable()
          Returns whether the build type is configured to generate a debuggable apk.
 boolean isEmbedMicroApp()
          Returns whether the variant embeds the micro app.
 boolean isJniDebugBuild()
          Returns whether the build type is configured to generate an apk with debuggable native code.
 boolean isRenderscriptDebugBuild()
          Returns whether the build type is configured to generate an apk with debuggable renderscript code.
 boolean isRunProguard()
          Returns whether proguard is enabled for this build type.
 boolean isTestCoverageEnabled()
          Returns whether the build type is configured to be build with support for code coverage.
 boolean isZipAlign()
          Return whether zipalign is enabled for this build type.
 
Methods inherited from interface com.android.builder.model.BaseConfig
getBuildConfigFields, getConsumerProguardFiles, getProguardFiles, getResValues
 

Method Detail

getName

@NonNull
java.lang.String getName()
Returns the name of the build type.

Specified by:
getName in interface BaseConfig
Returns:
the name of the build type.

isDebuggable

boolean isDebuggable()
Returns whether the build type is configured to generate a debuggable apk.

Returns:
true if the apk is debuggable

isTestCoverageEnabled

boolean isTestCoverageEnabled()
Returns whether the build type is configured to be build with support for code coverage.

Returns:
true if code coverage is enabled.

isJniDebugBuild

boolean isJniDebugBuild()
Returns whether the build type is configured to generate an apk with debuggable native code.

Returns:
true if the apk is debuggable

isRenderscriptDebugBuild

boolean isRenderscriptDebugBuild()
Returns whether the build type is configured to generate an apk with debuggable renderscript code.

Returns:
true if the apk is debuggable

getRenderscriptOptimLevel

int getRenderscriptOptimLevel()
Returns the optimization level of the renderscript compilation.

Returns:
the optimization level.

getApplicationIdSuffix

@Nullable
java.lang.String getApplicationIdSuffix()
Returns the application id suffix applied to this build type. To get the final application id, use AndroidArtifact.getApplicationId().

Returns:
the application id

getVersionNameSuffix

@Nullable
java.lang.String getVersionNameSuffix()
Returns the version name suffix.

Returns:
the version name suffix.

isRunProguard

boolean isRunProguard()
Returns whether proguard is enabled for this build type.

Returns:
true if proguard is enabled.

isZipAlign

boolean isZipAlign()
Return whether zipalign is enabled for this build type.

Returns:
true if zipalign is enabled.

getNdkConfig

@Nullable
NdkConfig getNdkConfig()
Returns the NDK configuration.

Returns:
the ndk config.

isEmbedMicroApp

boolean isEmbedMicroApp()
Returns whether the variant embeds the micro app.