AndroidManifestMerger

Standard implementation for merging multiple AndroidManifest.xml files.

The basis of this implementation uses the same manifest merging logic that the Android Gradle Plugin uses. The stock configuration is sensible for most libraries, but allows for customizing which features are enabled during manifest merging. Some features like Feature.USES_SDK_IN_MANIFEST_LENIENT_HANDLING are only available on newer versions of the Android Gradle Plugin, and will have no effect on older versions.

Constructors

Link copied to clipboard
constructor(vararg features: AndroidManifestMerger.Feature)

Types

Link copied to clipboard

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

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun merge(first: AndroidManifest, others: List<AndroidManifest>): AndroidManifest
Link copied to clipboard
fun setPlaceholder(key: String, value: String)