Package com.android.manifmerger
Enum Class ManifestMerger2.MergeType
- All Implemented Interfaces:
Serializable,Comparable<ManifestMerger2.MergeType>,Constable
- Enclosing class:
- ManifestMerger2
Defines the merging type expected from the tool.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionApplication merging type is used when packaging an application with a set of imported libraries.Fused library merging type is similar to application manifest merging as library manifests are merged, however tools annotations are kept for application merging, placeholder replacements are non-exhaustive and final validation is not performed.Library merging type is used when packaging a library.Privacy sandbox library merging similar to fused library merging except that resulting manifest is expected to be processed by aapt2 and shipped into an .asb file to the Play Store. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanisKeepToolsAttributeRequired(String localName, String value) Return true if the localName attribute should be removed from the node declaring it.static ManifestMerger2.MergeTypeReturns the enum constant of this class with the specified name.static ManifestMerger2.MergeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
APPLICATION
Application merging type is used when packaging an application with a set of imported libraries. The resulting merged android manifest is final and is not expected to be imported in another application. -
LIBRARY
Library merging type is used when packaging a library. The resulting android manifest file will not merge in all the imported libraries this library depends on. Also the tools annotations will not be removed as they can be useful when later importing the resulting merged android manifest into an application. -
FUSED_LIBRARY
Fused library merging type is similar to application manifest merging as library manifests are merged, however tools annotations are kept for application merging, placeholder replacements are non-exhaustive and final validation is not performed. merging. -
PRIVACY_SANDBOX_LIBRARY
Privacy sandbox library merging similar to fused library merging except that resulting manifest is expected to be processed by aapt2 and shipped into an .asb file to the Play Store.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isKeepToolsAttributeRequired
Return true if the localName attribute should be removed from the node declaring it.- Parameters:
localName- the XML no namespace local name
-
isFullPlaceholderSubstitutionRequired
public boolean isFullPlaceholderSubstitutionRequired()
-