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 getName()
          Returns the name of the build type.
 NdkConfig getNdkConfig()
          Returns the NDK configuration.
 java.lang.String getPackageNameSuffix()
          Returns the package name suffix applied to this build type.
 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 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 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

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.

getPackageNameSuffix

@Nullable
java.lang.String getPackageNameSuffix()
Returns the package name suffix applied to this build type. To get the final package name, use AndroidArtifact.getPackageName().

Returns:
the package name suffix.

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.