public static final class AaptCommandBuilder.AaptPackageCommandBuilder extends AaptCommandBuilder
AaptCommandBuilder.AaptDumpCommandBuilder, AaptCommandBuilder.AaptPackageCommandBuildercommands, 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, toStringpublic AaptPackageCommandBuilder(org.apache.maven.plugin.logging.Log log)
public AaptCommandBuilder.AaptPackageCommandBuilder makeResourcesNonConstant()
AaptCommandBuilder.AaptPackageCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder makeResourcesNonConstant(boolean make)
make - if true make resources ID non constant, otherwise ignoreAaptCommandBuilder.AaptPackageCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder makePackageDirectories()
setResourceConstantsFolder(java.io.File).AaptCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder setResourceConstantsFolder(File path)
path - path to resource constants folder.AaptCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder generateRIntoPackage(String packageName)
packageName - package name which generate R.java intoAaptCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder setPathToAndroidManifest(File path)
path - Path to AndroidManifest.xmlAaptCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder addResourceDirectoryIfExists(File resourceDirectory)
resourceDirectory - resource directory FileAaptCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder addResourceDirectoriesIfExists(List<File> resourceDirectories)
resourceDirectories - List of resource directories FileAaptCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder addResourceDirectoriesIfExists(File[] resourceDirectories)
resourceDirectories - array of resource directories FileAaptCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder autoAddOverlay()
AaptCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder addRawAssetsDirectoryIfExists(File assetsFolder)
assetsFolder - Folder containing the combined raw assets to add.AaptCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder addExistingPackageToBaseIncludeSet(File path)
path - Path to existing package to add.AaptCommandBuilderpublic 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 StringAaptCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder addExtraArguments(String[] extraArguments)
extraArguments - Array of extra arguments to pass to Aapt.AaptCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder setVerbose(boolean isVerbose)
isVerbose - if true aapt will be verbose, otherwise - noAaptCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder generateRTextFile(File folderForR)
folderForR - folder in which text file will be generatedAaptCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder forceOverwriteExistingFiles()
AaptCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder disablePngCrunching()
AaptCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder setOutputApkFile(File outputFile)
AaptCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder setProguardOptionsOutputFile(File outputFile)
AaptCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder renameManifestPackage(String manifestPackage)
manifestPackage - new manifest package to applyAaptCommandBuilder.AaptPackageCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder renameInstrumentationTargetPackage(String instrumentationPackage)
instrumentationPackage - new instrumentation target package to applyAaptCommandBuilder.AaptPackageCommandBuilderpublic AaptCommandBuilder.AaptPackageCommandBuilder setDebugMode(boolean isDebugMode)
AaptCommandBuilder.AaptPackageCommandBuilderCopyright © 2008–2019 simpligility technologies inc.. All rights reserved.