从APK中的android库中删除不需要的资源 [英] Remove not needed resources from android library in apk
本文介绍了从APK中的android库中删除不需要的资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个共享库,供该应用的多个版本使用.我希望能够按照应用程序配置删除未使用的库资源.
I have a shared library that is used by multiple variance of the app. I want to be able to strip out unused library resources as per app configuration.
- 我不想永久删除资源,因此Lint无济于事
- 资源是由共享代码引用的,我只知道在一定的差异下,没有使用可观的块
- 引用资源的共享代码正在使用(只是在某些使用差异下,没有很大的块在起作用),所以proguard也无济于事
我正准备通过蚂蚁构建脚本将黑客从库罐中删除.还有其他想法吗?
I'm heading toward hackery with ant build script to remove it from the library jar. Any other idea?
推荐答案
此从.apk 版本中排除整个./www/app
目录:
This excludes the whole ./www/app
directory from the .apk build:
<property name="aapt.ignore.assets" value="<dir>app:" />
这篇关于从APK中的android库中删除不需要的资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文