com.android.builder.core
Class DefaultBuildType

java.lang.Object
  extended by com.android.builder.internal.BaseConfigImpl
      extended by com.android.builder.core.DefaultBuildType
All Implemented Interfaces:
com.android.builder.model.BaseConfig, com.android.builder.model.BuildType, java.io.Serializable

public class DefaultBuildType
extends com.android.builder.internal.BaseConfigImpl
implements com.android.builder.model.BuildType

See Also:
Serialized Form

Constructor Summary
DefaultBuildType(java.lang.String name)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getApplicationIdSuffix()
          Application id suffix applied to this build type.
 java.lang.String getName()
           
 int getRenderscriptOptimLevel()
          Optimization level to use by the renderscript compiler.
 com.android.builder.model.SigningConfig getSigningConfig()
          Sets the signing configuration.
 java.lang.String getVersionNameSuffix()
          Version name suffix.
 int hashCode()
           
 DefaultBuildType initWith(DefaultBuildType that)
           
 boolean isDebuggable()
          Whether this build type should generate a debuggable apk.
 boolean isEmbedMicroApp()
           
 boolean isJniDebuggable()
          Whether this build type is configured to generate an APK with debuggable native code.
 boolean isMinifyEnabled()
          Whether Minify is enabled for this build type.
 boolean isPseudoLocalesEnabled()
           
 boolean isRenderscriptDebuggable()
          Whether the build type is configured to generate an apk with debuggable RenderScript code.
 boolean isTestCoverageEnabled()
           
 boolean isZipAlignEnabled()
          Whether zipalign is enabled for this build type.
 com.android.builder.model.BuildType setApplicationIdSuffix(java.lang.String applicationIdSuffix)
          Application id suffix applied to this build type.
 com.android.builder.model.BuildType setDebuggable(boolean debuggable)
          Whether this build type should generate a debuggable apk.
 void setEmbedMicroApp(boolean embedMicroApp)
           
 com.android.builder.model.BuildType setJniDebuggable(boolean jniDebugBuild)
          Whether this build type is configured to generate an APK with debuggable native code.
 com.android.builder.model.BuildType setMinifyEnabled(boolean enabled)
          Whether Minify is enabled for this build type.
 void setPseudoLocalesEnabled(boolean pseudoLocalesEnabled)
           
 com.android.builder.model.BuildType setRenderscriptDebuggable(boolean renderscriptDebugBuild)
          Whether the build type is configured to generate an apk with debuggable RenderScript code.
 void setRenderscriptOptimLevel(int renderscriptOptimLevel)
          Optimization level to use by the renderscript compiler.
 com.android.builder.model.BuildType setSigningConfig(com.android.builder.model.SigningConfig signingConfig)
          Sets the signing configuration.
 void setTestCoverageEnabled(boolean testCoverageEnabled)
           
 com.android.builder.model.BuildType setVersionNameSuffix(java.lang.String versionNameSuffix)
          Version name suffix.
 com.android.builder.model.BuildType setZipAlignEnabled(boolean zipAlign)
          Whether zipalign is enabled for this build type.
 java.lang.String toString()
           
 
Methods inherited from class com.android.builder.internal.BaseConfigImpl
_initWith, addBuildConfigField, addBuildConfigFields, addManifestPlaceHolders, addResValue, addResValues, getBuildConfigFields, getConsumerProguardFiles, getManifestPlaceholders, getMultiDexEnabled, getMultiDexKeepFile, getMultiDexKeepProguard, getProguardFiles, getResValues, setManifestPlaceholders, setMultiDexEnabled, setMultiDexKeepFile, setMultiDexKeepProguard
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.android.builder.model.BaseConfig
getBuildConfigFields, getConsumerProguardFiles, getManifestPlaceholders, getMultiDexEnabled, getMultiDexKeepFile, getMultiDexKeepProguard, getProguardFiles, getResValues
 

Constructor Detail

DefaultBuildType

public DefaultBuildType(@NonNull
                        java.lang.String name)
Method Detail

initWith

public DefaultBuildType initWith(DefaultBuildType that)

getName

@NonNull
public java.lang.String getName()
Specified by:
getName in interface com.android.builder.model.BaseConfig
Specified by:
getName in interface com.android.builder.model.BuildType

setDebuggable

@NonNull
public com.android.builder.model.BuildType setDebuggable(boolean debuggable)
Whether this build type should generate a debuggable apk.


isDebuggable

public boolean isDebuggable()
Whether this build type should generate a debuggable apk.

Specified by:
isDebuggable in interface com.android.builder.model.BuildType

setTestCoverageEnabled

public void setTestCoverageEnabled(boolean testCoverageEnabled)

isTestCoverageEnabled

public boolean isTestCoverageEnabled()
Specified by:
isTestCoverageEnabled in interface com.android.builder.model.BuildType

setPseudoLocalesEnabled

public void setPseudoLocalesEnabled(boolean pseudoLocalesEnabled)

isPseudoLocalesEnabled

public boolean isPseudoLocalesEnabled()
Specified by:
isPseudoLocalesEnabled in interface com.android.builder.model.BuildType

setJniDebuggable

@NonNull
public com.android.builder.model.BuildType setJniDebuggable(boolean jniDebugBuild)
Whether this build type is configured to generate an APK with debuggable native code.


isJniDebuggable

public boolean isJniDebuggable()
Whether this build type is configured to generate an APK with debuggable native code.

Specified by:
isJniDebuggable in interface com.android.builder.model.BuildType

isRenderscriptDebuggable

public boolean isRenderscriptDebuggable()
Whether the build type is configured to generate an apk with debuggable RenderScript code.

Specified by:
isRenderscriptDebuggable in interface com.android.builder.model.BuildType

setRenderscriptDebuggable

public com.android.builder.model.BuildType setRenderscriptDebuggable(boolean renderscriptDebugBuild)
Whether the build type is configured to generate an apk with debuggable RenderScript code.


getRenderscriptOptimLevel

public int getRenderscriptOptimLevel()
Optimization level to use by the renderscript compiler.

Specified by:
getRenderscriptOptimLevel in interface com.android.builder.model.BuildType

setRenderscriptOptimLevel

public void setRenderscriptOptimLevel(int renderscriptOptimLevel)
Optimization level to use by the renderscript compiler.


setApplicationIdSuffix

@NonNull
public com.android.builder.model.BuildType setApplicationIdSuffix(@Nullable
                                                                          java.lang.String applicationIdSuffix)
Application id suffix applied to this build type.


getApplicationIdSuffix

@Nullable
public java.lang.String getApplicationIdSuffix()
Application id suffix applied to this build type.

Specified by:
getApplicationIdSuffix in interface com.android.builder.model.BuildType

setVersionNameSuffix

@NonNull
public com.android.builder.model.BuildType setVersionNameSuffix(@Nullable
                                                                        java.lang.String versionNameSuffix)
Version name suffix.


getVersionNameSuffix

@Nullable
public java.lang.String getVersionNameSuffix()
Version name suffix.

Specified by:
getVersionNameSuffix in interface com.android.builder.model.BuildType

setMinifyEnabled

@NonNull
public com.android.builder.model.BuildType setMinifyEnabled(boolean enabled)
Whether Minify is enabled for this build type.


isMinifyEnabled

public boolean isMinifyEnabled()
Whether Minify is enabled for this build type.

Specified by:
isMinifyEnabled in interface com.android.builder.model.BuildType

setZipAlignEnabled

@NonNull
public com.android.builder.model.BuildType setZipAlignEnabled(boolean zipAlign)
Whether zipalign is enabled for this build type.


isZipAlignEnabled

public boolean isZipAlignEnabled()
Whether zipalign is enabled for this build type.

Specified by:
isZipAlignEnabled in interface com.android.builder.model.BuildType

setSigningConfig

@NonNull
public com.android.builder.model.BuildType setSigningConfig(@Nullable
                                                                    com.android.builder.model.SigningConfig signingConfig)
Sets the signing configuration. e.g.: signingConfig signingConfigs.myConfig


getSigningConfig

@Nullable
public com.android.builder.model.SigningConfig getSigningConfig()
Sets the signing configuration. e.g.: signingConfig signingConfigs.myConfig

Specified by:
getSigningConfig in interface com.android.builder.model.BuildType

isEmbedMicroApp

public boolean isEmbedMicroApp()
Specified by:
isEmbedMicroApp in interface com.android.builder.model.BuildType

setEmbedMicroApp

public void setEmbedMicroApp(boolean embedMicroApp)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class com.android.builder.internal.BaseConfigImpl

hashCode

public int hashCode()
Overrides:
hashCode in class com.android.builder.internal.BaseConfigImpl

toString

@NonNull
public java.lang.String toString()
Overrides:
toString in class com.android.builder.internal.BaseConfigImpl