public class AndroidAarDescription extends Object implements DescriptionWithTargetGraph<AndroidAarDescriptionArg>, ImplicitDepsInferringDescription<AndroidAarDescriptionArg>
BuildRule 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 a SourcePath, 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 and Description |
|---|
AndroidAarDescription(AndroidManifestFactory androidManifestFactory,
CxxBuckConfig cxxBuckConfig,
ToolchainProvider toolchainProvider) |
| Modifier and Type | Method and Description |
|---|---|
BuildRule |
createBuildRule(BuildRuleCreationContextWithTargetGraph context,
BuildTarget buildTarget,
BuildRuleParams originalBuildRuleParams,
AndroidAarDescriptionArg args)
Create a
BuildRule for the given BuildRuleParams. |
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitproducesCacheableSubgraphgetConfigurationDepspublic AndroidAarDescription(AndroidManifestFactory androidManifestFactory, CxxBuckConfig cxxBuckConfig, ToolchainProvider toolchainProvider)
public Class<AndroidAarDescriptionArg> getConstructorArgType()
BaseDescriptiongetConstructorArgType in interface BaseDescription<AndroidAarDescriptionArg>public BuildRule createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams originalBuildRuleParams, AndroidAarDescriptionArg args)
DescriptionWithTargetGraphBuildRule for the given BuildRuleParams. Note that the BuildTarget referred to in the params contains the Flavor to create.createBuildRule in interface DescriptionWithTargetGraph<AndroidAarDescriptionArg>args - A constructor argument, of type as returned by BaseDescription.getConstructorArgType().BuildRule that describes the default flavour of the rule being described.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)
findDepsForTargetFromConstructorArgs in interface ImplicitDepsInferringDescription<AndroidAarDescriptionArg>