ProGuard configuration for Guava with obfuscation and optimization

前端 未结 10 1451
臣服心动
臣服心动 2020-12-07 12:04

Looking for a ProGuard configuration for Guava that will obfuscate and optimize, as the default one that is provided on the website does not.

Not only that I cannot

10条回答
  •  萌比男神i
    2020-12-07 12:59

    Now that Guava 19.0 is released, I found that I had to add these rules.

    -keep class com.google.j2objc.annotations.** { *; }
    -dontwarn   com.google.j2objc.annotations.**
    -keep class java.lang.ClassValue { *; }
    -dontwarn   java.lang.ClassValue
    -keep class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement { *; }
    -dontwarn   org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
    

提交回复
热议问题