llew2011 / llew2011/BytecodeFixer
配置的保留class文件,最终还是没有保存
Nobody has claimed this yet.
- Dominant language
- Groovy
- Stars
- 93
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
发现多次执行inject后
会删除之前解压的class文件,导致最终只剩下一个空文件夹
def baseDir = new StringBuilder().append(mProject.projectDir.absolutePath)
.append(File.separator).append(INJECTOR)
.append(File.separator).append(mVersionName)
.append(File.separator).append(jarName).toString()
File rootFile = new File(baseDir)
FileUtils.clearFile(rootFile)
if (!rootFile.mkdirs()) {
Logger.e("mkdirs ${rootFile.absolutePath} failure")
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the inject logic shown in the issue, especially the construction of baseDir and the call to FileUtils.clearFile(rootFile). Trace how repeated inject runs handle previously extracted class files and how the retention setting is applied. Done means configured class files remain available after multiple inject runs instead of leaving only an empty directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, groovy
- Domain
- build-system, devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100