@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 XmlDocument |
cleanToolsReferences(ManifestMerger2.MergeType mergeType,
XmlDocument document,
com.android.utils.ILogger logger)
Cleans all attributes belonging to the
SdkConstants.TOOLS_URI namespace. |
@Nullable public static XmlDocument cleanToolsReferences(@NonNull ManifestMerger2.MergeType mergeType, @NonNull XmlDocument document, @NonNull com.android.utils.ILogger logger)
SdkConstants.TOOLS_URI namespace.document - the xml document to cleanlogger - logger to use in case of errors and warnings.