public class AndroidPrebuiltAar extends AndroidLibrary implements HasAndroidResourceDeps, HasRuntimeDeps
AndroidLibrary.Builder
JavaLibrary.Data
GWT_MODULE_FLAVOR, MAVEN_JAR, SRC_JAR
Constructor and Description |
---|
AndroidPrebuiltAar(BuildTarget androidLibraryBuildTarget,
ProjectFilesystem projectFilesystem,
BuildRuleParams androidLibraryParams,
SourcePathRuleFinder ruleFinder,
SourcePath proguardConfig,
SourcePath nativeLibsDirectory,
PrebuiltJar prebuiltJar,
UnzipAar unzipAar,
CompileToJarStepFactory configuredCompiler,
Iterable<PrebuiltJar> exportedDeps,
boolean requiredForSourceAbi,
Optional<String> mavenCoords,
boolean useSystemLibraryLoader) |
Modifier and Type | Method and Description |
---|---|
void |
addToCollector(AndroidPackageableCollector collector)
Add concrete resources to the given collector.
|
SourcePath |
getAssets() |
SourcePath |
getBinaryJar() |
SourcePath |
getPathToRDotJavaPackageFile() |
SourcePath |
getPathToTextSymbolsFile() |
PrebuiltJar |
getPrebuiltJar() |
String |
getRDotJavaPackage() |
SourcePath |
getRes() |
java.util.stream.Stream<BuildTarget> |
getRuntimeDeps(BuildRuleResolver buildRuleResolver) |
boolean |
useDependencyFileRuleKeys() |
builder, getManifestFile, getType
getAbiInfo, getAbiJar, getBuildOutputInitializer, getClassHashesProvider, getClassNamesToHashes, getCompileTimeClasspathSourcePaths, getCoveredByDepFilePredicate, getDepsForTransitiveClasspathEntries, getExistenceOfInterestPredicate, getExportedDeps, getExportedProvidedDeps, getGeneratedAnnotationSourcePath, getImmediateClasspaths, getInputsAfterBuildingLocally, getJavaSrcs, getMavenCoords, getOutputClasspaths, getPipelineStateFactory, getPreviousRuleInPipeline, getRequiredForSourceOnlyAbi, getRequiredPackageables, getResources, getResourcesRoot, getSourceOnlyAbiJar, getSourcePathToOutput, getSources, getTests, getTransitiveClasspathDeps, getTransitiveClasspaths, hasAnnotationProcessing, initializeFromDisk, invalidateInitializeFromDiskState, isDesugarEnabled, isInterfaceMethodsDesugarEnabled, neverMarkAsUnusedDependency, rulesBuilder, setJavaClassHashesProvider, 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
getBuildTarget
compareTo, getBuildDeps, getBuildSteps, getBuildTarget, getFullyQualifiedName, getProjectFilesystem, getSourcePathToOutput, hasBuildSteps, isCacheable, outputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecution, toString, updateBuildRuleResolver
getDependencies, getSourcePathOutputs
getType
getRequiredPackageables
isMavenCoordsPresent
isSupported
isSupported
public AndroidPrebuiltAar(BuildTarget androidLibraryBuildTarget, ProjectFilesystem projectFilesystem, BuildRuleParams androidLibraryParams, SourcePathRuleFinder ruleFinder, SourcePath proguardConfig, SourcePath nativeLibsDirectory, PrebuiltJar prebuiltJar, UnzipAar unzipAar, CompileToJarStepFactory configuredCompiler, Iterable<PrebuiltJar> exportedDeps, boolean requiredForSourceAbi, Optional<String> mavenCoords, boolean useSystemLibraryLoader)
public String getRDotJavaPackage()
getRDotJavaPackage
in interface HasAndroidResourceDeps
public boolean useDependencyFileRuleKeys()
useDependencyFileRuleKeys
in interface SupportsDependencyFileRuleKey
useDependencyFileRuleKeys
in class DefaultJavaLibrary
public SourcePath getPathToTextSymbolsFile()
getPathToTextSymbolsFile
in interface HasAndroidResourceDeps
public SourcePath getPathToRDotJavaPackageFile()
getPathToRDotJavaPackageFile
in interface HasAndroidResourceDeps
public SourcePath getRes()
getRes
in interface HasAndroidResourceDeps
public SourcePath getAssets()
getAssets
in interface HasAndroidResourceDeps
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 AndroidLibrary
collector
- The AndroidPackageableCollector
that will receive the content.public PrebuiltJar getPrebuiltJar()
public SourcePath getBinaryJar()
public java.util.stream.Stream<BuildTarget> getRuntimeDeps(BuildRuleResolver buildRuleResolver)
getRuntimeDeps
in interface HasRuntimeDeps
getRuntimeDeps
in class DefaultJavaLibrary