com.android.manifmerger
Class ToolsInstructionsCleaner

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

@Immutable
public class ToolsInstructionsCleaner
extends java.lang.Object

Removes all "tools:" statements from the resulting xml. All attributes belonging to the SdkConstants.ANDROID_URI namespace will be removed. If an element contained a "tools:node=\"remove\"" attribute, the element will be deleted.


Constructor Summary
ToolsInstructionsCleaner()
           
 
Method Summary
static XmlDocument cleanToolsReferences(XmlDocument document, com.android.utils.ILogger logger)
          Cleans all attributes belonging to the SdkConstants.TOOLS_URI namespace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolsInstructionsCleaner

public ToolsInstructionsCleaner()
Method Detail

cleanToolsReferences

@Nullable
public static XmlDocument cleanToolsReferences(@NonNull
                                                        XmlDocument document,
                                                        @NonNull
                                                        com.android.utils.ILogger logger)
Cleans all attributes belonging to the SdkConstants.TOOLS_URI namespace.

Parameters:
document - the xml document to clean
logger - logger to use in case of errors and warnings.
Returns:
the cleaned document or null if an error occurred.