com.android.manifmerger
Class ManifestMerger2

java.lang.Object
  extended by com.android.manifmerger.ManifestMerger2

@Immutable
public class ManifestMerger2
extends java.lang.Object

merges android manifest files, idempotent.


Nested Class Summary
static interface ManifestMerger2.AutoAddingProperty
          Defines a property that can add or override itself into an XML document.
static class ManifestMerger2.Invoker
          This class will hold all invocation parameters for the manifest merging tool.
static class ManifestMerger2.MapBasedKeyBasedValueResolver<T>
          Helper class for map based placeholders key value pairs.
static class ManifestMerger2.MergeFailureException
           
static class ManifestMerger2.SystemProperty
          List of manifest files properties that can be directly overridden without using a placeholder.
 
Method Summary
static ManifestMerger2.Invoker newInvoker(java.io.File mainManifestFile, com.android.utils.ILogger logger)
          Creates a new ManifestMerger2.Invoker instance to invoke the merging tool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInvoker

public static ManifestMerger2.Invoker newInvoker(@NonNull
                                                 java.io.File mainManifestFile,
                                                 @NonNull
                                                 com.android.utils.ILogger logger)
Creates a new ManifestMerger2.Invoker instance to invoke the merging tool.

Parameters:
mainManifestFile - application main manifest file.
logger - the logger interface to use.
Returns:
an ManifestMerger2.Invoker instance that will allow further customization and trigger the merging tool.