com.android.manifmerger
Enum ManifestMerger2.MergeType

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

public static enum ManifestMerger2.MergeType
extends java.lang.Enum<ManifestMerger2.MergeType>

Defines the merging type expected from the tool.


Enum Constant Summary
APPLICATION
          Application merging type is used when packaging an application with a set of imported libraries.
LIBRARY
          Library merging typee is used when packaging a library.
 
Method Summary
static ManifestMerger2.MergeType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ManifestMerger2.MergeType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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

Method Detail

values

public static ManifestMerger2.MergeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ManifestMerger2.MergeType c : ManifestMerger2.MergeType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ManifestMerger2.MergeType valueOf(java.lang.String name)
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.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null