Feature
Optional behavior of the merging tool can be turned on by setting these features during manifest merging.
Entries
Keep all intermediary merged files during the merging process.
Perform a sweep after all merging activities to remove all fully qualified class names and replace them with the equivalent short version.
Perform a sweep after all merging activities to remove all tools: decorations.
Do no perform placeholders replacement.
Encode unresolved placeholders to be AAPT friendly.
Clients will not request the blame history
Clients will only request the merged XML documents, not XML pretty printed documents
Do not perform implicit permission addition.
Perform Studio advanced profiling manifest modifications.
Mark this application as a feature split.
Set the android:debuggable flag to the application.
When there are attribute value conflicts, automatically pick the higher priority value.
Adds the AndroidX name of MULTI_DEX_APPLICATION as application name if none is specified. Used for legacy multidex.
Adds the pre-AndroidX name of MULTI_DEX_APPLICATION as application name if none is specified. Used for legacy multidex.
Enforce that dependencies manifests don't have duplicated package names.
Unsafely disables minSdkVersion check in libraries.
Warn if the package attribute is present in the main manifest, or throw an exception if it's present and not equal to the component's namespace.
Removes target SDK for library manifest.
If set, merger will continue merging after any errors, allowing to surface errors in the "merged manifest" editor view.
Warn if the ATTR_EXTRACT_NATIVE_LIBS attribute is set to true in a dependency manifest but not set to true in the merged manifest.
Suppresses the warning shown when package attribute is present in the main manifest, and is equal to the component's namespace.
Warns instead of throwing an error when the main manifest contains <uses-sdk> for the purpose of minSdkVersion, maxSdkVersion or targetSdkVersion. Starting with AGP 9.0.0 this tag will be allowed for the purpose of tools:overrideLibrary only.
When androidTest manifest can have replace attributes. AGP merge it with generated manifest triggering false warnings.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.