commit | 44828989c8e9d8871b3dab664cf4939608170ecf | [log] [tgz] |
---|---|---|
author | Rico Wind <ricow@google.com> | Mon Oct 16 07:53:41 2023 +0200 |
committer | Rico Wind <ricow@google.com> | Mon Oct 16 07:53:41 2023 +0200 |
tree | 58d582d3fbf3cff7249c25557aa28ec7c5a06bfb | |
parent | 7a827c79ce0ae1b03481b3d68d7a6e497e51e807 [diff] |
Use different XmlUtils method for backwards compatability This method does not exist in the currently checked in version in google3 This is the only thing missing for us to be able to correctly setup dependendencies Change-Id: I4a207a623e6920685b8e50198b737cf1ac94eb4c
diff --git a/src/resourceshrinker/java/com/android/build/shrinker/usages/ToolsAttributeUsageRecorder.kt b/src/resourceshrinker/java/com/android/build/shrinker/usages/ToolsAttributeUsageRecorder.kt index 3d0dc6f..0dae39a 100644 --- a/src/resourceshrinker/java/com/android/build/shrinker/usages/ToolsAttributeUsageRecorder.kt +++ b/src/resourceshrinker/java/com/android/build/shrinker/usages/ToolsAttributeUsageRecorder.kt
@@ -62,7 +62,7 @@ private fun processResourceToolsAttributes(path: Path): Map<String, String> { val toolsAttributes = mutableMapOf<String, String>() - XmlUtils.getUtfReader(path).use { reader: Reader -> + XmlUtils.getUtfReader(path.toFile()).use { reader: Reader -> val factory = XMLInputFactory.newInstance() val xmlStreamReader = factory.createXMLStreamReader(reader)