Enum Class ManifestMerger2.MergeType

java.lang.Object
java.lang.Enum<ManifestMerger2.MergeType>
com.android.manifmerger.ManifestMerger2.MergeType
All Implemented Interfaces:
Serializable, Comparable<ManifestMerger2.MergeType>, Constable
Enclosing class:
ManifestMerger2

public static enum ManifestMerger2.MergeType extends Enum<ManifestMerger2.MergeType>
Defines the merging type expected from the tool.
  • Enum Constant Details

    • APPLICATION

      public static final ManifestMerger2.MergeType 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

      public static final ManifestMerger2.MergeType 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

      public static final ManifestMerger2.MergeType 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

      public static final ManifestMerger2.MergeType 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

      public static ManifestMerger2.MergeType[] 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

      public static ManifestMerger2.MergeType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isKeepToolsAttributeRequired

      public boolean isKeepToolsAttributeRequired(String localName, String value)
      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()