public class AndroidLibrary extends DefaultJavaLibrary implements AndroidPackageable
Modifier and Type | Class and Description |
---|---|
static class |
AndroidLibrary.Builder |
JavaLibrary.Data
GWT_MODULE_FLAVOR, MAVEN_JAR, SRC_JAR
Modifier and Type | Method and Description |
---|---|
void |
addToCollector(AndroidPackageableCollector collector)
Add concrete resources to the given collector.
|
static AndroidLibrary.Builder |
builder(BuildTarget buildTarget,
ProjectFilesystem projectFilesystem,
ToolchainProvider toolchainProvider,
BuildRuleParams params,
ActionGraphBuilder graphBuilder,
JavaBuckConfig javaBuckConfig,
JavacFactory javacFactory,
JavacOptions javacOptions,
AndroidLibraryDescription.CoreArg args,
ConfiguredCompilerFactory compilerFactory) |
Optional<SourcePath> |
getManifestFile() |
String |
getType() |
getAbiInfo, getAbiJar, getBuildOutputInitializer, getClassHashesProvider, getClassNamesToHashes, getCompileTimeClasspathSourcePaths, getCoveredByDepFilePredicate, getDepsForTransitiveClasspathEntries, getExistenceOfInterestPredicate, getExportedDeps, getExportedProvidedDeps, getGeneratedAnnotationSourcePath, getImmediateClasspaths, getInputsAfterBuildingLocally, getJavaSrcs, getMavenCoords, getOutputClasspaths, getPipelineStateFactory, getPreviousRuleInPipeline, getRequiredForSourceOnlyAbi, getRequiredPackageables, getResources, getResourcesRoot, getRuntimeDeps, getSourceOnlyAbiJar, getSourcePathToOutput, getSources, getTests, getTransitiveClasspathDeps, getTransitiveClasspaths, hasAnnotationProcessing, initializeFromDisk, invalidateInitializeFromDiskState, isDesugarEnabled, isInterfaceMethodsDesugarEnabled, neverMarkAsUnusedDependency, rulesBuilder, setJavaClassHashesProvider, useDependencyFileRuleKeys, useRulePipelining
getPipelinedBuildSteps
compareTo, getBuildable, getBuildCellPathFactory, getBuildDeps, getBuildSteps, getOutputPathResolver, getSetupStepsForBuildable, getSourcePath, getSourcePaths, injectFieldsIfNecessary, inputBasedRuleKeyIsEnabled, recordOutputs, recordOutputs, recordOutputs, stepsForBuildable, stepsForBuildable, updateBuildRuleResolver
equals, getBuildTarget, getDependencies, getProjectFilesystem, getSourcePathOutputs, hasBuildSteps, hashCode, injectFields, isCacheable, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getRequiredPackageables
isMavenCoordsPresent
compareTo, getBuildDeps, getBuildSteps, getBuildTarget, getFullyQualifiedName, getProjectFilesystem, hasBuildSteps, isCacheable, outputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecution, toString, updateBuildRuleResolver
getDependencies, getSourcePathOutputs
isSupported
isSupported
public static AndroidLibrary.Builder builder(BuildTarget buildTarget, ProjectFilesystem projectFilesystem, ToolchainProvider toolchainProvider, BuildRuleParams params, ActionGraphBuilder graphBuilder, JavaBuckConfig javaBuckConfig, JavacFactory javacFactory, JavacOptions javacOptions, AndroidLibraryDescription.CoreArg args, ConfiguredCompilerFactory compilerFactory)
public Optional<SourcePath> getManifestFile()
public String getType()
getType
in interface HasNameAndType
getType
in class AbstractBuildRule
public void addToCollector(AndroidPackageableCollector collector)
AndroidPackageable
Implementations should call methods on the collector specify what concrete content must be included in an Android package that includes this object. For example, an android_library will add Java classes, an ndk_library will add native libraries, and android_resource will add resource directories.
addToCollector
in interface AndroidPackageable
addToCollector
in class DefaultJavaLibrary
collector
- The AndroidPackageableCollector
that will receive the content.