Skip to content

Commit

Permalink
1、修复bug
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyJingFish committed Jul 11, 2024
1 parent b997e57 commit e3e3cbd
Showing 1 changed file with 18 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,14 +389,18 @@ abstract class AssembleAndroidAopTask : DefaultTask() {

for (directory in ignoreJarClassPaths) {
val directoryPath = directory.absolutePath
directory.walk().forEach { file ->
directory.walk().sortedBy {
it.name.length
}.forEach { file ->
processFile(file, directory, directoryPath)
}

}
allDirectories.get().forEach { directory ->
val directoryPath = directory.asFile.absolutePath
directory.asFile.walk().forEach { file ->
directory.asFile.walk().sortedBy {
it.name.length
}.forEach { file ->
processFile(file,directory.asFile,directoryPath)
}
}
Expand All @@ -406,16 +410,23 @@ abstract class AssembleAndroidAopTask : DefaultTask() {
}
val jarFile = JarFile(file.asFile)
val enumeration = jarFile.entries()
val jarEntryList = mutableListOf<JarEntry>()
while (enumeration.hasMoreElements()) {
val jarEntry = enumeration.nextElement()
try {
val entryName = jarEntry.name
val entryName = jarEntry.name
// if (jarEntry.isDirectory || entryName.isEmpty() || !entryName.endsWith(_CLASS) || entryName.startsWith("META-INF/")) {
// continue
// }
if (jarEntry.isDirectory || entryName.isEmpty() || entryName.startsWith("META-INF/") || "module-info.class" == entryName) {
continue
}
if (jarEntry.isDirectory || entryName.isEmpty() || entryName.startsWith("META-INF/") || "module-info.class" == entryName) {
continue
}
jarEntryList.add(jarEntry)
}
jarEntryList.sortedBy {
it.name.length
}.forEach { jarEntry ->
try {
val entryName = jarEntry.name

val methodsRecord: HashMap<String, MethodRecord>? = WovenInfoUtils.getClassMethodRecord(entryName)

Expand Down

0 comments on commit e3e3cbd

Please sign in to comment.