Package com.facebook.buck.android
Class AndroidAarDescription
- java.lang.Object
-
- com.facebook.buck.android.AndroidAarDescription
-
- All Implemented Interfaces:
ImplicitDepsInferringDescription<AndroidAarDescriptionArg>
,BaseDescription<AndroidAarDescriptionArg>
,Description<AndroidAarDescriptionArg>
,DescriptionWithTargetGraph<AndroidAarDescriptionArg>
public class AndroidAarDescription extends Object implements DescriptionWithTargetGraph<AndroidAarDescriptionArg>, ImplicitDepsInferringDescription<AndroidAarDescriptionArg>
Description for aBuildRule
that generates an.aar
file.This represents an Android Library Project packaged as an
.aar
bundle as specified by: https://developer.android.com/studio/projects/android-library#aar-contents.Note that the
aar
may be specified as aSourcePath
, so it could be either a binary.aar
file checked into version control, or a zip file that conforms to the.aar
specification that is generated by another build rule.
-
-
Constructor Summary
Constructors Constructor Description AndroidAarDescription(AndroidManifestFactory androidManifestFactory, CxxBuckConfig cxxBuckConfig, ToolchainProvider toolchainProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildRule
createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams originalBuildRuleParams, AndroidAarDescriptionArg args)
Create aBuildRule
for the givenBuildRuleParams
.void
findDepsForTargetFromConstructorArgs(BuildTarget buildTarget, CellNameResolver cellRoots, AndroidAarDescriptionArg constructorArg, com.google.common.collect.ImmutableCollection.Builder<BuildTarget> extraDepsBuilder, com.google.common.collect.ImmutableCollection.Builder<BuildTarget> targetGraphOnlyDepsBuilder)
Class<AndroidAarDescriptionArg>
getConstructorArgType()
The type of the constructor argument that is used by this description to create a rule-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.facebook.buck.core.description.BaseDescription
getConfigurationDeps
-
Methods inherited from interface com.facebook.buck.core.rules.DescriptionWithTargetGraph
producesCacheableSubgraph
-
-
-
-
Constructor Detail
-
AndroidAarDescription
public AndroidAarDescription(AndroidManifestFactory androidManifestFactory, CxxBuckConfig cxxBuckConfig, ToolchainProvider toolchainProvider)
-
-
Method Detail
-
getConstructorArgType
public Class<AndroidAarDescriptionArg> getConstructorArgType()
Description copied from interface:BaseDescription
The type of the constructor argument that is used by this description to create a rule- Specified by:
getConstructorArgType
in interfaceBaseDescription<AndroidAarDescriptionArg>
-
createBuildRule
public BuildRule createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams originalBuildRuleParams, AndroidAarDescriptionArg args)
Description copied from interface:DescriptionWithTargetGraph
Create aBuildRule
for the givenBuildRuleParams
. Note that theBuildTarget
referred to in theparams
contains theFlavor
to create.- Specified by:
createBuildRule
in interfaceDescriptionWithTargetGraph<AndroidAarDescriptionArg>
args
- A constructor argument, of type as returned byBaseDescription.getConstructorArgType()
.- Returns:
- The
BuildRule
that describes the default flavour of the rule being described.
-
findDepsForTargetFromConstructorArgs
public void findDepsForTargetFromConstructorArgs(BuildTarget buildTarget, CellNameResolver cellRoots, AndroidAarDescriptionArg constructorArg, com.google.common.collect.ImmutableCollection.Builder<BuildTarget> extraDepsBuilder, com.google.common.collect.ImmutableCollection.Builder<BuildTarget> targetGraphOnlyDepsBuilder)
- Specified by:
findDepsForTargetFromConstructorArgs
in interfaceImplicitDepsInferringDescription<AndroidAarDescriptionArg>
-
-