How to use -dontwarn in ProGuard?

前端 未结 2 509
粉色の甜心
粉色の甜心 2020-12-09 07:42

I am using android studio to build debug and release application. When i build debug/release application

./gradlew assembleDebug

./gradlew assembleRelease
<         


        
相关标签:
2条回答
  • 2020-12-09 08:15

    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.**

    0 讨论(0)
  • 2020-12-09 08:23

    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.

    0 讨论(0)
提交回复
热议问题