public class AndroidManifest extends AbstractBuildRule
AndroidManifest
is a BuildRule
that can generate an Android manifest from a
skeleton manifest and the library manifests from its dependencies.
android_manifest( name = 'my_manifest', skeleton = 'AndroidManifestSkeleton.xml', deps = [ ':sample_manifest', # Additional dependent android_resource and android_library rules would be listed here, # as well. ], )This will produce a file under buck-out/gen that will be parameterized by the name of the
android_manifest
rule. This can be used as follows:
android_binary( name = 'my_app', manifest = ':my_manifest', ... )
Modifier | Constructor and Description |
---|---|
protected |
AndroidManifest(BuildTarget buildTarget,
ProjectFilesystem projectFilesystem,
SourcePathRuleFinder finder,
SourcePath skeletonFile,
APKModule module,
Collection<SourcePath> manifestFiles) |
Modifier and Type | Method and Description |
---|---|
SortedSet<BuildRule> |
getBuildDeps() |
com.google.common.collect.ImmutableList<Step> |
getBuildSteps(BuildContext context,
BuildableContext buildableContext) |
SourcePath |
getSourcePathToOutput() |
equals, getBuildTarget, getDependencies, getProjectFilesystem, getSourcePathOutputs, getType, hasBuildSteps, hashCode, injectFields, isCacheable, toString, updateBuildRuleResolver
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getFullyQualifiedName, outputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecution
protected AndroidManifest(BuildTarget buildTarget, ProjectFilesystem projectFilesystem, SourcePathRuleFinder finder, SourcePath skeletonFile, APKModule module, Collection<SourcePath> manifestFiles)
public SortedSet<BuildRule> getBuildDeps()
deps
argument for this build rule in the build file in which it was defined.
However, there are special cases where other arguments pull in implicit dependencies
(e.g., the keystore
argument in android_binary
). In these cases, the
implicit dependencies are also included in the set returned by this method. The value of
the original deps
argument, as defined in the build file, must be accessed via a
custom getter provided by the build rule.
public com.google.common.collect.ImmutableList<Step> getBuildSteps(BuildContext context, BuildableContext buildableContext)
public SourcePath getSourcePathToOutput()