How to use -dontwarn in ProGuard?

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.