proguard icon indicating copy to clipboard operation
proguard copied to clipboard

Apply -keepattributes for specific classes only

Open Rubydesic opened this issue 2 years ago • 0 comments

I have a class com.rubydesic.MyClass and I want to keep some attributes, such as RuntimeVisibleAnnotations or SourceFile, but only for this class. Is that possible?

Something like this, where there would be a third parameter for keepattributes:

-keepattributes RuntimeVisibleAnnotations,SourceFile com.rubydesic.MyClass

Rubydesic avatar Oct 22 '23 09:10 Rubydesic