Class DefaultManifestParser

java.lang.Object
com.android.builder.core.DefaultManifestParser
All Implemented Interfaces:
ManifestAttributeSupplier

@Deprecated public class DefaultManifestParser extends Object implements ManifestAttributeSupplier
Deprecated.
Implementation of the ManifestAttributeSupplier.

This is meant to be a quick parser to create the building model, and is thread-safe.

  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultManifestParser(File manifestFile, BooleanSupplier canParseManifest, boolean isManifestFileRequired, com.android.builder.errors.IssueReporter issueReporter)
    Deprecated.
    Builds instance of the parser, and parses the supplied file.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Returns value of the extractNativeLibs attribute of the application tag, if present.
    Deprecated.
    Gets the functionalTest for instrumentation in the manifest file processed by this parser.
    Deprecated.
    Gets the handleProfiling for instrumentation in the manifest file processed by this parser.
    Deprecated.
    Gets the instrumentation runner for the manifest file processed by this parser.
    Deprecated.
    Gets the minimum sdk version for the manifest file processed by this parser.
    Deprecated.
    Gets the package name for the manifest file processed by this parser.
    Deprecated.
    Gets the split name for the manifest file processed by this parser.
    Deprecated.
    Gets the target package for instrumentation in the manifest file processed by this parser.
    Deprecated.
    Gets the target sdk version for the manifest file processed by this parser.
    Deprecated.
    Gets the testLabel for instrumentation in the manifest file processed by this parser.
    Deprecated.
    Returns value of the useEmbeddedDex attribute of the application tag, if present.
    boolean
    Deprecated.
    Whether the manifest file is required to exist.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultManifestParser

      public DefaultManifestParser(@NonNull File manifestFile, @NonNull BooleanSupplier canParseManifest, boolean isManifestFileRequired, @Nullable com.android.builder.errors.IssueReporter issueReporter)
      Deprecated.
      Builds instance of the parser, and parses the supplied file. The manifest is lazily parsed and should typically only be parsed during the execution phase.
      Parameters:
      manifestFile - manifest to be parsed.
      canParseManifest - whether the manifest can currently be parsed.
      isManifestFileRequired - whether the manifest file is required to exist
      issueReporter - IssueReporter
  • Method Details

    • isManifestFileRequired

      public boolean isManifestFileRequired()
      Deprecated.
      Description copied from interface: ManifestAttributeSupplier
      Whether the manifest file is required to exist.
      Specified by:
      isManifestFileRequired in interface ManifestAttributeSupplier
    • getPackage

      @Nullable public String getPackage()
      Deprecated.
      Gets the package name for the manifest file processed by this parser.
      Specified by:
      getPackage in interface ManifestAttributeSupplier
      Returns:
      the package name or null if not found.
    • getSplit

      @Nullable public String getSplit()
      Deprecated.
      Gets the split name for the manifest file processed by this parser.
      Specified by:
      getSplit in interface ManifestAttributeSupplier
      Returns:
      the split name or null if not found.
    • getMinSdkVersion

      @NonNull public Object getMinSdkVersion()
      Deprecated.
      Gets the minimum sdk version for the manifest file processed by this parser.
      Specified by:
      getMinSdkVersion in interface ManifestAttributeSupplier
      Returns:
      the minSdkVersion or null if value is not set.
    • getTargetSdkVersion

      @NonNull public Object getTargetSdkVersion()
      Deprecated.
      Gets the target sdk version for the manifest file processed by this parser.
      Specified by:
      getTargetSdkVersion in interface ManifestAttributeSupplier
      Returns:
      the targetSdkVersion or null if not found
    • getInstrumentationRunner

      @Nullable public String getInstrumentationRunner()
      Deprecated.
      Gets the instrumentation runner for the manifest file processed by this parser.
      Specified by:
      getInstrumentationRunner in interface ManifestAttributeSupplier
      Returns:
      the instrumentation runner or null if there is none specified.
    • getTargetPackage

      @Nullable public String getTargetPackage()
      Deprecated.
      Gets the target package for instrumentation in the manifest file processed by this parser.
      Specified by:
      getTargetPackage in interface ManifestAttributeSupplier
      Returns:
      the targetPackage or null if there is none specified.
    • getFunctionalTest

      @Nullable public Boolean getFunctionalTest()
      Deprecated.
      Gets the functionalTest for instrumentation in the manifest file processed by this parser.
      Specified by:
      getFunctionalTest in interface ManifestAttributeSupplier
      Returns:
      the functionalTest or null if there is none specified.
    • getHandleProfiling

      @Nullable public Boolean getHandleProfiling()
      Deprecated.
      Gets the handleProfiling for instrumentation in the manifest file processed by this parser.
      Specified by:
      getHandleProfiling in interface ManifestAttributeSupplier
      Returns:
      the handleProfiling or null if there is none specified.
    • getTestLabel

      @Nullable public String getTestLabel()
      Deprecated.
      Gets the testLabel for instrumentation in the manifest file processed by this parser.
      Specified by:
      getTestLabel in interface ManifestAttributeSupplier
      Returns:
      the testLabel or null if there is none specified.
    • getExtractNativeLibs

      @Nullable public Boolean getExtractNativeLibs()
      Deprecated.
      Description copied from interface: ManifestAttributeSupplier
      Returns value of the extractNativeLibs attribute of the application tag, if present.
      Specified by:
      getExtractNativeLibs in interface ManifestAttributeSupplier
    • getUseEmbeddedDex

      @Nullable public Boolean getUseEmbeddedDex()
      Deprecated.
      Description copied from interface: ManifestAttributeSupplier
      Returns value of the useEmbeddedDex attribute of the application tag, if present.
      Specified by:
      getUseEmbeddedDex in interface ManifestAttributeSupplier