Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e74bebc

Browse files
committedNov 22, 2024
fix: Revert "fix(core.gradle-plugin): 兼容更高版本cmdline-tools中decodeXml方法签名变化"
This reverts commit 93268d6b707ccf76311b1a1f6c2b577fcf5f1576.
1 parent 64d1593 commit e74bebc

File tree

1 file changed

+2
-0
lines changed
  • projects/sdk/core/gradle-plugin/src/main/kotlin/com/tencent/shadow/core/gradle

1 file changed

+2
-0
lines changed
 

‎projects/sdk/core/gradle-plugin/src/main/kotlin/com/tencent/shadow/core/gradle/ShadowPlugin.kt

+2
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ class ShadowPlugin : Plugin<Project> {
247247
tempCL.loadClass("com.android.tools.apk.analyzer.BinaryXmlParser")
248248
val decodeXmlMethod = binaryXmlParserClass.getDeclaredMethod(
249249
"decodeXml",
250+
String::class.java,
250251
ByteArray::class.java
251252
)
252253

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

258259
val outputXmlBytes = decodeXmlMethod.invoke(
259260
null,
261+
"AndroidManifest.xml",
260262
binaryXml
261263
) as ByteArray
262264
decodeXml.parentFile.mkdirs()

0 commit comments

Comments
 (0)
Please sign in to comment.