public class DefaultManifestParser extends java.lang.Object implements ManifestAttributeSupplier
ManifestAttributeSupplier.
This is meant to be a quick parser to create the building model, and is thread-safe.
| Constructor and Description |
|---|
DefaultManifestParser(java.io.File manifestFile,
java.util.function.BooleanSupplier canParseManifest,
com.android.builder.errors.EvalIssueReporter issueReporter)
Builds instance of the parser, and parses the supplied file.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
getExtractNativeLibs()
Returns value of the
extractNativeLibs attribute of the application tag, if
present. |
java.lang.Boolean |
getFunctionalTest()
Gets the functionalTest for instrumentation in the manifest file processed by this parser.
|
java.lang.Boolean |
getHandleProfiling()
Gets the handleProfiling for instrumentation in the manifest file processed by this parser.
|
java.lang.String |
getInstrumentationRunner()
Gets the instrumentation runner for the manifest file processed by this parser.
|
java.lang.Object |
getMinSdkVersion()
Gets the minimum sdk version for the manifest file processed by this parser.
|
java.lang.String |
getPackage()
Gets the package name for the manifest file processed by this parser.
|
java.lang.String |
getSplit()
Gets the split name for the manifest file processed by this parser.
|
java.lang.String |
getTargetPackage()
Gets the target package for instrumentation in the manifest file processed by this parser.
|
java.lang.Object |
getTargetSdkVersion()
Gets the target sdk version for the manifest file processed by this parser.
|
java.lang.String |
getTestLabel()
Gets the testLabel for instrumentation in the manifest file processed by this parser.
|
int |
getVersionCode()
Gets the version code for the manifest file processed by this parser.
|
java.lang.String |
getVersionName()
Gets the version name for the manifest file processed by this parser.
|
public DefaultManifestParser(@NonNull
java.io.File manifestFile,
@NonNull
java.util.function.BooleanSupplier canParseManifest,
@Nullable
com.android.builder.errors.EvalIssueReporter issueReporter)
manifestFile - manifest to be parsed.canParseManifest - whether the manifest can currently be parsed.issueReporter - EvalIssueReporter@Nullable public java.lang.String getPackage()
getPackage in interface ManifestAttributeSupplier@Nullable public java.lang.String getSplit()
getSplit in interface ManifestAttributeSupplier@Nullable public java.lang.String getVersionName()
getVersionName in interface ManifestAttributeSupplierpublic int getVersionCode()
getVersionCode in interface ManifestAttributeSupplier@NonNull public java.lang.Object getMinSdkVersion()
getMinSdkVersion in interface ManifestAttributeSupplier@NonNull public java.lang.Object getTargetSdkVersion()
getTargetSdkVersion in interface ManifestAttributeSupplier@Nullable public java.lang.String getInstrumentationRunner()
getInstrumentationRunner in interface ManifestAttributeSuppliernull if there is none specified.@Nullable public java.lang.String getTargetPackage()
getTargetPackage in interface ManifestAttributeSuppliernull if there is none specified.@Nullable public java.lang.Boolean getFunctionalTest()
getFunctionalTest in interface ManifestAttributeSuppliernull if there is none specified.@Nullable public java.lang.Boolean getHandleProfiling()
getHandleProfiling in interface ManifestAttributeSuppliernull if there is none specified.@Nullable public java.lang.String getTestLabel()
getTestLabel in interface ManifestAttributeSuppliernull if there is none specified.@Nullable public java.lang.Boolean getExtractNativeLibs()
ManifestAttributeSupplierextractNativeLibs attribute of the application tag, if
present.getExtractNativeLibs in interface ManifestAttributeSupplier