Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置的保留class文件,最终还是没有保存 #8

Open
api888 opened this issue Jan 19, 2021 · 0 comments
Open

配置的保留class文件,最终还是没有保存 #8

api888 opened this issue Jan 19, 2021 · 0 comments

Comments

@api888
Copy link

api888 commented Jan 19, 2021

发现多次执行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")
}

@api888 api888 changed the title 配置的保流class文件,最终还是没有保存 配置的保留class文件,最终还是没有保存 Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant