Skip to content

Commit

Permalink
fix(core.transform-kit): 忽略根目录的module-info.class
Browse files Browse the repository at this point in the history
有些第三方库的module-info.class没有放到`META-INF/`目录下。

fix Tencent#704
  • Loading branch information
shifujun committed Dec 7, 2021
1 parent 7b02667 commit afc95ef
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ abstract class AbstractTransform(

private fun CtClass.debugWriteJar(outputEntryName: String?, outputStream: ZipOutputStream) {
//忽略META-INF
if (outputEntryName?.startsWith("META-INF/") == true) {
if (outputEntryName?.startsWith("META-INF/") == true
|| outputEntryName?.equals("module-info.class") == true
) {
return
}

Expand Down

0 comments on commit afc95ef

Please sign in to comment.