Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you comment out a rule in Proguard.cfg?

What syntax is used to comment out a proguard rule inside Proguard.cfg? Thanks

like image 791
Code Droid Avatar asked May 10 '12 22:05

Code Droid


2 Answers

Hash symbols.

# This is a comment.  The 3 lines below are not.
-keepclassmembers class * extends android.app.Activity { 
       public void *(android.view.View); 
}
like image 101
Alexander Lucas Avatar answered Nov 20 '22 07:11

Alexander Lucas


From the manual

You can add comments in a configuration file, starting with a # character and continuing until the end of the line.

Example

# This is a comment

Manual Link Here

http://proguard.sourceforge.net/manual/usage.html

like image 1
Jeremy Bunn Avatar answered Nov 20 '22 07:11

Jeremy Bunn