com.android.manifmerger
Class ElementsTrimmer

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

public class ElementsTrimmer
extends java.lang.Object

Trims the document from unwanted, repeated elements.


Constructor Summary
ElementsTrimmer()
           
 
Method Summary
static void trim(XmlDocument xmlDocument, com.android.manifmerger.MergingReport.Builder mergingReport)
          Trims unwanted, duplicated elements from the merged document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementsTrimmer

public ElementsTrimmer()
Method Detail

trim

public static void trim(@NonNull
                        XmlDocument xmlDocument,
                        @NonNull
                        com.android.manifmerger.MergingReport.Builder mergingReport)
Trims unwanted, duplicated elements from the merged document.

Current trimmed elements are :

Parameters:
xmlDocument - the xml document to trim.
mergingReport - the report to log errors and actions.