public static final class AaptCommandBuilder.AaptPackageCommandBuilder extends AaptCommandBuilder
AaptCommandBuilder.AaptDumpCommandBuilder, AaptCommandBuilder.AaptPackageCommandBuilder
commands, log
Constructor and Description |
---|
AaptPackageCommandBuilder(org.apache.maven.plugin.logging.Log log) |
Modifier and Type | Method and Description |
---|---|
AaptCommandBuilder.AaptPackageCommandBuilder |
addConfigurations(String configurations)
Specify which configurations to include.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
addExistingPackageToBaseIncludeSet(File path)
Add an existing package to base include set.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
addExtraArguments(String[] extraArguments)
Adds some additional aapt arguments that are not represented as separate parameters
android-maven-plugin configuration.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
addRawAssetsDirectoryIfExists(File assetsFolder)
Additional directory in which to find raw asset files.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
addResourceDirectoriesIfExists(File[] resourceDirectories)
Directories in which to find resources.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
addResourceDirectoriesIfExists(List<File> resourceDirectories)
Directories in which to find resources.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
addResourceDirectoryIfExists(File resourceDirectory)
Directory in which to find resources.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
autoAddOverlay()
Automatically add resources that are only in overlays.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
disablePngCrunching()
Disable PNG crunching.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
forceOverwriteExistingFiles()
Force overwrite of existing files.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
generateRIntoPackage(String packageName)
Generates R java into a different package.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
generateRTextFile(File folderForR)
Generates a text file containing the resource symbols of the R class in the
specified folder.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
makePackageDirectories()
Make package directories under location specified by
setResourceConstantsFolder(java.io.File) . |
AaptCommandBuilder.AaptPackageCommandBuilder |
makeResourcesNonConstant()
Make the resources ID non constant.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
makeResourcesNonConstant(boolean make)
Make the resources ID non constant.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
renameInstrumentationTargetPackage(String instrumentationPackage)
Rewrite the manifest so that all of its instrumentation components target the given package.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
renameManifestPackage(String manifestPackage)
Rewrite the manifest so that its package name is the package name given here.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
setDebugMode(boolean isDebugMode)
Inserts android:debuggable="true" into the application node of the
manifest, making the application debuggable even on production devices.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
setOutputApkFile(File outputFile)
Specify the apk file to output.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
setPathToAndroidManifest(File path)
Specify full path to AndroidManifest.xml to include in zip.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
setProguardOptionsOutputFile(File outputFile)
Output Proguard options to a File.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
setResourceConstantsFolder(File path)
Specify where the R java resource constant definitions should be generated or found.
|
AaptCommandBuilder.AaptPackageCommandBuilder |
setVerbose(boolean isVerbose)
Makes output verbose.
|
build, dump, packageResources, toString
public AaptPackageCommandBuilder(org.apache.maven.plugin.logging.Log log)
public AaptCommandBuilder.AaptPackageCommandBuilder makeResourcesNonConstant()
AaptCommandBuilder.AaptPackageCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder makeResourcesNonConstant(boolean make)
make
- if true make resources ID non constant, otherwise ignoreAaptCommandBuilder.AaptPackageCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder makePackageDirectories()
setResourceConstantsFolder(java.io.File)
.AaptCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder setResourceConstantsFolder(File path)
path
- path to resource constants folder.AaptCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder generateRIntoPackage(String packageName)
packageName
- package name which generate R.java intoAaptCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder setPathToAndroidManifest(File path)
path
- Path to AndroidManifest.xmlAaptCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder addResourceDirectoryIfExists(File resourceDirectory)
resourceDirectory
- resource directory File
AaptCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder addResourceDirectoriesIfExists(List<File> resourceDirectories)
resourceDirectories
- List
of resource directories File
AaptCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder addResourceDirectoriesIfExists(File[] resourceDirectories)
resourceDirectories
- array of resource directories File
AaptCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder autoAddOverlay()
AaptCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder addRawAssetsDirectoryIfExists(File assetsFolder)
assetsFolder
- Folder containing the combined raw assets to add.AaptCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder addExistingPackageToBaseIncludeSet(File path)
path
- Path to existing package to add.AaptCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder addConfigurations(String configurations)
Some examples:
If you put the special locale, zz_ZZ on the list, it will perform pseudolocalization on the default locale, modifying all of the strings so you can look for strings that missed the internationalization process.
For example:
configurations
- configuration to include in form of String
AaptCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder addExtraArguments(String[] extraArguments)
extraArguments
- Array of extra arguments to pass to Aapt.AaptCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder setVerbose(boolean isVerbose)
isVerbose
- if true aapt will be verbose, otherwise - noAaptCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder generateRTextFile(File folderForR)
folderForR
- folder in which text file will be generatedAaptCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder forceOverwriteExistingFiles()
AaptCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder disablePngCrunching()
AaptCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder setOutputApkFile(File outputFile)
AaptCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder setProguardOptionsOutputFile(File outputFile)
AaptCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder renameManifestPackage(String manifestPackage)
manifestPackage
- new manifest package to applyAaptCommandBuilder.AaptPackageCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder renameInstrumentationTargetPackage(String instrumentationPackage)
instrumentationPackage
- new instrumentation target package to applyAaptCommandBuilder.AaptPackageCommandBuilder
public AaptCommandBuilder.AaptPackageCommandBuilder setDebugMode(boolean isDebugMode)
AaptCommandBuilder.AaptPackageCommandBuilder
Copyright © 2008–2019 simpligility technologies inc.. All rights reserved.