Builds the command line necessary for an aapt package invocation
| Constructor and description |
|---|
AaptPackageCommandBuilder
(File manifestFile, com.android.builder.model.AaptOptions options)@param manifestFile the location of the manifest file |
| Type | Name and description |
|---|---|
List<String> |
build(com.android.sdklib.BuildToolInfo buildToolInfo, com.android.sdklib.IAndroidTarget target, com.android.utils.ILogger logger) |
List<? extends SymbolFileProvider> |
getLibraries() |
File |
getManifestFile() |
String |
getSourceOutputDir() |
String |
getSymbolOutputDir() |
Type |
getType() |
AaptPackageCommandBuilder |
setAssetsFolder(File assetsFolder)@param assetsFolder the merged asset folder |
AaptPackageCommandBuilder |
setDebuggable(boolean debuggable)@param debuggable whether the app is debuggable |
AaptPackageCommandBuilder |
setLibraries(List<? extends SymbolFileProvider> libraries)@param libraries the flat list of libraries |
AaptPackageCommandBuilder |
setPackageForR(String packageForR)@param packageForR Package override to generate the R class in a different package. |
AaptPackageCommandBuilder |
setPreferredDensity(String density)Specifies a preference for a particular density. |
AaptPackageCommandBuilder |
setProguardOutput(String proguardOutput)@param proguardOutput optional filepath for proguard file to generate |
AaptPackageCommandBuilder |
setPseudoLocalesEnabled(boolean pseudoLocalesEnabled) |
AaptPackageCommandBuilder |
setResFolder(File resFolder)@param resFolder the merged res folder |
AaptPackageCommandBuilder |
setResPackageOutput(String resPackageOutput)@param resPackageOutput optional filepath for packaged resources |
AaptPackageCommandBuilder |
setResourceConfigs(Collection<String> resourceConfigs)@param resourceConfigs a list of resource config filters to pass to aapt. |
AaptPackageCommandBuilder |
setSourceOutputDir(String sourceOutputDir)@param sourceOutputDir optional source folder to generate R.java |
AaptPackageCommandBuilder |
setSplits(Collection<String> splits)
|
AaptPackageCommandBuilder |
setSymbolOutputDir(String symbolOutputDir)@ itself
|
AaptPackageCommandBuilder |
setType(Type type)@param type the type of the variant being built |
AaptPackageCommandBuilder |
setVerbose() |
manifestFile - the location of the manifest fileoptions - the com.android.builder.model.AaptOptions
assetsFolder - the merged asset folder
debuggable - whether the app is debuggable
libraries - the flat list of libraries
packageForR - Package override to generate the R class in a different package.Specifies a preference for a particular density. Resources that do not match this density and have variants that are a closer match are removed.
density - the preferred density
proguardOutput - optional filepath for proguard file to generate
resFolder - the merged res folder
resPackageOutput - optional filepath for packaged resources
resourceConfigs - a list of resource config filters to pass to aapt.
sourceOutputDir - optional source folder to generate R.java
splits - optional list of split dimensions values (like a density or an abi). This
will be used by aapt to generate the corresponding pure split apks.@ itself
symbolOutputDir - the folder to write symbols into
type - the type of the variant being built