Class AndroidManifest

  • All Implemented Interfaces:
    BuildEngineAction, AllowsNonAnnotatedFields, BuildRule, HasNameAndType, Comparable<BuildRule>

    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.
       name = 'my_manifest',
       skeleton = 'AndroidManifestSkeleton.xml',
       deps = [
         # 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:
       name = 'my_app',
       manifest = ':my_manifest',
    • Method Detail

      • getBuildDeps

        public SortedSet<BuildRule> getBuildDeps()
        the set of rules that must be built before this rule. Normally, this matches the value of the 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.

      • getSourcePathToOutput

        public SourcePath getSourcePathToOutput()