Skip to content

Commit

Permalink
fix(core.gradle-plugin): 兼容更高版本cmdline-tools中decodeXml方法签名变化
Browse files Browse the repository at this point in the history
  • Loading branch information
aprz512 authored and shifujun committed Nov 22, 2024
1 parent 7650e36 commit d8364de
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ class ShadowPlugin : Plugin<Project> {
tempCL.loadClass("com.android.tools.apk.analyzer.BinaryXmlParser")
val decodeXmlMethod = binaryXmlParserClass.getDeclaredMethod(
"decodeXml",
String::class.java,
ByteArray::class.java
)

Expand All @@ -258,7 +257,6 @@ class ShadowPlugin : Plugin<Project> {

val outputXmlBytes = decodeXmlMethod.invoke(
null,
"AndroidManifest.xml",
binaryXml
) as ByteArray
decodeXml.parentFile.mkdirs()
Expand Down

0 comments on commit d8364de

Please sign in to comment.