Feature

Optional behavior of the merging tool can be turned on by setting these features during manifest merging.

Entries

Link copied to clipboard

Keep all intermediary merged files during the merging process.

Link copied to clipboard

When logging file names, use getName rather than getPath.

Link copied to clipboard

Perform a sweep after all merging activities to remove all fully qualified class names and replace them with the equivalent short version.

Link copied to clipboard

Perform a sweep after all merging activities to remove all tools: decorations.

Link copied to clipboard

Do no perform placeholders replacement.

Link copied to clipboard

Encode unresolved placeholders to be AAPT friendly.

Link copied to clipboard

Clients will not request the blame history

Link copied to clipboard

Clients will only request the merged XML documents, not XML pretty printed documents

Link copied to clipboard

Add android:testOnly="true" attribute to prevent APK from being uploaded to Play store.

Link copied to clipboard

Do not perform implicit permission addition.

Link copied to clipboard

Perform Studio advanced profiling manifest modifications.

Link copied to clipboard

Mark this application as a feature split.

Link copied to clipboard

Set the android:debuggable flag to the application.

Link copied to clipboard

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.

Link copied to clipboard

Enforce that dependencies manifests don't have duplicated package names.

Link copied to clipboard

Unsafely disables minSdkVersion check in libraries.

Link copied to clipboard

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.

Link copied to clipboard

Removes target SDK for library manifest.

Link copied to clipboard

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.

Link copied to clipboard

Suppresses the warning shown when package attribute is present in the main manifest, and is equal to the component's namespace.

Link copied to clipboard
Link copied to clipboard

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.

Link copied to clipboard

When androidTest manifest can have replace attributes. AGP merge it with generated manifest triggering false warnings.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.