com.android.manifmerger
Class PostValidator

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

public class PostValidator
extends java.lang.Object

Validator that runs post merging activities and verifies that all "tools:" instructions triggered an action by the merging tool.

This is primarily to catch situations like a user entered a tools:remove="foo" directory on one of its elements and that particular attribute was never removed during the merges possibly indicating an unforeseen change of configuration.

Most of the output from this validation should be warnings.


Constructor Summary
PostValidator()
           
 
Method Summary
static void validate(XmlDocument xmlDocument, com.android.manifmerger.MergingReport.Builder mergingReport)
          Post validation of the merged document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostValidator

public PostValidator()
Method Detail

validate

public static void validate(@NonNull
                            XmlDocument xmlDocument,
                            @NonNull
                            com.android.manifmerger.MergingReport.Builder mergingReport)
Post validation of the merged document. This will essentially check that all merging instructions were applied at least once.

Parameters:
xmlDocument - merged document to check.
mergingReport - report for errors and warnings.