My application jar contains classes from swing-layout.jar which contains free layout manager for java 1.5. During obfuscation process i get a lot of warnings such as
[proguard] Note: org.jdesktop.layout.SwingLayoutStyle accesses a field 'INDE
NT' dynamically
[proguard] Maybe this is program field 'org.jdesktop.layout.LayoutStyl
e { int INDENT; }'
I would like proguard to leave org.jdesktop classes alone, and get rid of the warnings i tried
-keeppackagenames org.jdesktop.*
but it did not work?
You want, I think,
Note the two stars. From the documentation:
-keeppackagenames just keeps… package names! You want -keep, which protects the names of things in packages.