@Immutable
public class ToolsInstructionsCleaner
extends java.lang.Object
SdkConstants.ANDROID_URI namespace will be
removed. If an element contained a "tools:node=\"remove\"" attribute, the element will be
deleted. And elements that are themselves in the tools namespace will also be removed.| Constructor and Description |
|---|
ToolsInstructionsCleaner() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Optional<org.w3c.dom.Document> |
cleanToolsReferences(ManifestMerger2.MergeType mergeType,
org.w3c.dom.Document document,
com.android.utils.ILogger logger)
Cleans all attributes belonging to the
SdkConstants.TOOLS_URI namespace. |
public static com.google.common.base.Optional<org.w3c.dom.Document> cleanToolsReferences(@NonNull
ManifestMerger2.MergeType mergeType,
@NonNull
org.w3c.dom.Document document,
@NonNull
com.android.utils.ILogger logger)
SdkConstants.TOOLS_URI namespace.document - the document to cleanlogger - logger to use in case of errors and warnings.