James Qin
James Qin

Reputation: 13

How to put -dontwarn or -ignorewarning command in Proguard GUI?

I recently have trouble to use the proguad GUI to obfuscation my .jar file creating from the android studio. I want to obfuscation all the private method name by using proguard GUI. I have using the android-24/android.jar as a library. But I still get the 1 warning. Warning picture from Proguard GUI Like this picture. I don't know how to put -dontwarn or -ignorewarning command inside the proguard GUI. I also have search other people's question. question 1 question 2. But nobody answer. Please help. Thanks in advance.

Upvotes: 0

Views: 1211

Answers (2)

MikhailSP
MikhailSP

Reputation: 3313

You can save configuration using the "Save configuration..." button on the Process tab. Open it in notepad, add -dontwarn line, save and reload it using "Load configuration..." button on Proguard tab.

In your case line can be

-dontwarn com.esielect.serialport.usbserial.SerialInputStream

This solution is better than completely ignore all the warnings. If you ignore all warnings you can miss some important one and get issues in runtime

Upvotes: 0

James Qin
James Qin

Reputation: 13

I just figure out by myself. I have find there is an option that I can select inside the Proguard GUI. Please check the picture. The ignore warning option in the proguard GUI. If that take you a lot of time. My apologize. This method is good for obfuscation the class name or method name inside the .jar file.

Upvotes: 1

Related Questions