Package com.android.builder.core
Class DefaultManifestParser
java.lang.Object
com.android.builder.core.DefaultManifestParser
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionDefaultManifestParser(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 TypeMethodDescriptionDeprecated.Returns value of theextractNativeLibsattribute of theapplicationtag, 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.getSplit()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 theuseEmbeddedDexattribute of theapplicationtag, if present.booleanDeprecated.Whether the manifest file is required to exist.
-
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 existissueReporter- IssueReporter
-
-
Method Details
-
isManifestFileRequired
public boolean isManifestFileRequired()Deprecated.Description copied from interface:ManifestAttributeSupplierWhether the manifest file is required to exist.- Specified by:
isManifestFileRequiredin interfaceManifestAttributeSupplier
-
getPackage
Deprecated.Gets the package name for the manifest file processed by this parser.- Specified by:
getPackagein interfaceManifestAttributeSupplier- Returns:
- the package name or null if not found.
-
getSplit
Deprecated.Gets the split name for the manifest file processed by this parser.- Specified by:
getSplitin interfaceManifestAttributeSupplier- Returns:
- the split name or null if not found.
-
getMinSdkVersion
Deprecated.Gets the minimum sdk version for the manifest file processed by this parser.- Specified by:
getMinSdkVersionin interfaceManifestAttributeSupplier- Returns:
- the minSdkVersion or null if value is not set.
-
getTargetSdkVersion
Deprecated.Gets the target sdk version for the manifest file processed by this parser.- Specified by:
getTargetSdkVersionin interfaceManifestAttributeSupplier- Returns:
- the targetSdkVersion or null if not found
-
getInstrumentationRunner
Deprecated.Gets the instrumentation runner for the manifest file processed by this parser.- Specified by:
getInstrumentationRunnerin interfaceManifestAttributeSupplier- Returns:
- the instrumentation runner or
nullif there is none specified.
-
getTargetPackage
Deprecated.Gets the target package for instrumentation in the manifest file processed by this parser.- Specified by:
getTargetPackagein interfaceManifestAttributeSupplier- Returns:
- the targetPackage or
nullif there is none specified.
-
getFunctionalTest
Deprecated.Gets the functionalTest for instrumentation in the manifest file processed by this parser.- Specified by:
getFunctionalTestin interfaceManifestAttributeSupplier- Returns:
- the functionalTest or
nullif there is none specified.
-
getHandleProfiling
Deprecated.Gets the handleProfiling for instrumentation in the manifest file processed by this parser.- Specified by:
getHandleProfilingin interfaceManifestAttributeSupplier- Returns:
- the handleProfiling or
nullif there is none specified.
-
getTestLabel
Deprecated.Gets the testLabel for instrumentation in the manifest file processed by this parser.- Specified by:
getTestLabelin interfaceManifestAttributeSupplier- Returns:
- the testLabel or
nullif there is none specified.
-
getExtractNativeLibs
Deprecated.Description copied from interface:ManifestAttributeSupplierReturns value of theextractNativeLibsattribute of theapplicationtag, if present.- Specified by:
getExtractNativeLibsin interfaceManifestAttributeSupplier
-
getUseEmbeddedDex
Deprecated.Description copied from interface:ManifestAttributeSupplierReturns value of theuseEmbeddedDexattribute of theapplicationtag, if present.- Specified by:
getUseEmbeddedDexin interfaceManifestAttributeSupplier
-