How to use -dontwarn in ProGuard?

落爺英雄遲暮 提交于 2019-11-28 08:03:12

When I add new lib to project Generally this How I need to define for Progaurd.

Let's say I am using Twitter4J lib then I add dontwarn this way.

-keep class twitter4j.** { *; }

-dontwarn twitter4j.**

Put the -dontwarn lines in the proguard-rules.pro or proguard-rules.txt file.

Had to google this elsewhere since none of the answers included this info. Check the other answers for the specific lines you need for your case.

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