com.android.builder.model
Interface BaseConfig

All Known Subinterfaces:
BuildType, ProductFlavor

public interface BaseConfig

Base config object for Build Type and Product flavor.


Method Summary
 java.lang.String getApplicationIdSuffix()
          Returns the application id suffix applied to this base config.
 java.util.Map<java.lang.String,ClassField> getBuildConfigFields()
          Map of Build Config Fields where the key is the field name.
 java.util.Collection<java.io.File> getConsumerProguardFiles()
          Returns the collection of proguard rule files for consumers of the library to use.
 java.util.List<java.io.File> getJarJarRuleFiles()
          Returns the optional jarjar rule files, or empty if jarjar should be skipped.
 java.util.Map<java.lang.String,java.lang.Object> getManifestPlaceholders()
          Returns the map of key value pairs for placeholder substitution in the android manifest file.
 java.lang.Boolean getMultiDexEnabled()
          Returns whether multi-dex is enabled.
 java.io.File getMultiDexKeepFile()
           
 java.io.File getMultiDexKeepProguard()
           
 java.lang.String getName()
           
 java.util.Collection<java.io.File> getProguardFiles()
          Returns the collection of proguard rule files.
 java.util.Map<java.lang.String,ClassField> getResValues()
          Map of generated res values where the key is the res name.
 java.util.Collection<java.io.File> getTestProguardFiles()
          Returns the collection of proguard rule files to use for the test APK.
 

Method Detail

getName

@NonNull
java.lang.String getName()

getApplicationIdSuffix

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

Returns:
the application id

getBuildConfigFields

@NonNull
java.util.Map<java.lang.String,ClassField> getBuildConfigFields()
Map of Build Config Fields where the key is the field name.

Returns:
a non-null map of class fields (possibly empty).

getResValues

@NonNull
java.util.Map<java.lang.String,ClassField> getResValues()
Map of generated res values where the key is the res name.

Returns:
a non-null map of class fields (possibly empty).

getProguardFiles

@NonNull
java.util.Collection<java.io.File> getProguardFiles()
Returns the collection of proguard rule files.

These files are only applied to the production code.

Returns:
a non-null collection of files.
See Also:
getTestProguardFiles()

getConsumerProguardFiles

@NonNull
java.util.Collection<java.io.File> getConsumerProguardFiles()
Returns the collection of proguard rule files for consumers of the library to use.

Returns:
a non-null collection of files.

getTestProguardFiles

@NonNull
java.util.Collection<java.io.File> getTestProguardFiles()
Returns the collection of proguard rule files to use for the test APK.

Returns:
a non-null collection of files.

getManifestPlaceholders

@NonNull
java.util.Map<java.lang.String,java.lang.Object> getManifestPlaceholders()
Returns the map of key value pairs for placeholder substitution in the android manifest file. This map will be used by the manifest merger.

Returns:
the map of key value pairs.

getMultiDexEnabled

@Nullable
java.lang.Boolean getMultiDexEnabled()
Returns whether multi-dex is enabled. This can be null if the flag is not set, in which case the default value is used.


getMultiDexKeepFile

@Nullable
java.io.File getMultiDexKeepFile()

getMultiDexKeepProguard

@Nullable
java.io.File getMultiDexKeepProguard()

getJarJarRuleFiles

@NonNull
java.util.List<java.io.File> getJarJarRuleFiles()
Returns the optional jarjar rule files, or empty if jarjar should be skipped. If more than one file is provided, the rule files will be merged in order with last one win in case of rule redefinition. Can only be used with Jack toolchain.

Returns:
the optional jarjar rule file.