I am using -repackageclasses 'my.pdt.z' option of proguard plugin, but obfuscated files still exist in other folders as well

半腔热情 提交于 2019-12-13 04:31:47

问题


I am using following options with proguard plugin. I expect all obfuscated class to be in 'com.xProject.z' folder but I find them spread in other folders as well. Does somebody know why?

<options>
<option>-repackageclasses 'com.xProject.z'</option>
<option>-dontshrink</option>
<option>-dontoptimize</option>
<option>-dontskipnonpubliclibraryclassmembers</option>
<option>-dontskipnonpubliclibraryclasses</option>
<option>-keepattributes</option>
<option>-keepclasseswithmembers public class * {public static void
            main(java.lang.String[]);}</option>
<option>-keepclassmembernames class * {java.lang.Class class$(*);}
</option>

回答1:


Some classes aren't moved to the specified package because your configuration preserves their names. Some more classes can't be moved because they access package visible classes, fields, or methods in the first set of classes (or the other way around). You can relax this constraint with allowaccessmodification.



来源:https://stackoverflow.com/questions/16141319/i-am-using-repackageclasses-my-pdt-z-option-of-proguard-plugin-but-obfuscate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!