-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
lib依赖远程第三方库的jar重复打包 #378
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
错误报告
你做了什么?
在lib插件包中依赖了远程第三方库(该库属于是jar包分类而非aar,例如fastjson、glide),在宿主中也申明依赖该远程第三方库。
你期望的结果是什么?
第三方库的class只打在宿主中。
实际结果是什么?
产出的lib中包含了第三方库的class文件,没有在transform阶段抽离。
分析:
在
StripAarTransform
这个类中对插件产生dex之前对jarInput没有正确抽离相关三方库的代码,只是抽离了aar类型三方库的代码。目前我的解决办法:
在
AppPlugin
中的hookPreReleaseBuild
方法中收集对应的jar包信息,以供transform做抽离判断。The text was updated successfully, but these errors were encountered: