Methods members are not obfuscated

vavanou
2013-02-07
2013-02-08
  • vavanou

    vavanou - 2013-02-07

    I don't understand why proguard does not obfuscate methods arguments name :
    ex :
    public c(a parameters, eads.ndtkit.readers.a reader, g gate, eads.ndtkit.a.a.f.a.a filter, ArrayList<cimpa.smartndtkit.a.a.d> dacPointList, float globalGain, boolean dacActive, e roi, eads.ndtkit.a.c.b mode)

    Here, my configuration

        -useuniqueclassmembernames
        -dontshrink
        -verbose
        -dontoptimize
        -printmapping
        '${basedir}/mapping_${project.version}.txt'
        -renamesourcefileattribute SourceFile
        -dontnote
        -keepattributes
        Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,*Annotation*,Synthetic,EnclosingMethod
        -keep class eads.ndtkit.NDTkit
        -adaptresourcefilenames **.properties,**.gif,**.jpg
        -adaptresourcefilecontents **.properties,META-INF/MANIFEST.MF
        -dontpreverify
        -keepclasseswithmembers public class * {
            public static void main(java.lang.String[]);
        }
    
        -keepattributes **
    
        -keepclassmembers class cimpa.smartndtkit.utilities.file.DefaultConfigFileReader {
        void set*(***);
        void set*(int, ***);
        boolean is*();
        boolean is*(int);
        *** get*();
        *** get*(int);
        }
    
        -keepclassmembers @javax.xml.bind.annotation.XmlRootElement class * {
        &lt;fields&gt;;
        void set*(***);
        void set*(int, ***);
        boolean is*();
        boolean is*(int);
        *** get*();
        *** get*(int);
        }
        -keepclassmembers @javax.xml.bind.annotation.XmlType class * {
        &lt;fields&gt;;
        void set*(***);
        void set*(int, ***);
        boolean is*();
        boolean is*(int);
        *** get*();
        *** get*(int);
        }
    
        -keepclassmembers class * extends java.lang.Enum {
            &lt;fields&gt;;
            public static **[] values();
            public static ** valueOf(java.lang.String);
        }
    
        -keepclassmembers enum * {
            public static **[] values();
            public static ** valueOf(java.lang.String);
        }
    
        -keep class * extends
        javax.swing.plaf.ComponentUI {
        public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent);
        }
    
        -keepclassmembers class ** extends eads.common.businessaction.Infos {
        &lt;fields&gt;;
        void set*(***);
        void set*(int, ***);
        boolean is*();
        boolean is*(int);
        *** get*();
        *** get*(int);
        }
    
        -keepclasseswithmembers class ** extends com.sun.jna.Library
        {
        &lt;methods&gt;;
        }
    
        -keepclassmembers class ** extends java.io.Serializable {
        void set*(***);
        void set*(int, ***);
        boolean is*();
        boolean is*(int);
        *** get*();
        *** get*(int);
        }
    
        -keepclasseswithmembers,allowshrinking class * {
        native &lt;methods&gt;;
        }
    

    If anybody can help me, it will be gratefull,

    Thanks

     
    Last edit: vavanou 2013-02-07
  • Eric Lafortune

    Eric Lafortune - 2013-02-08

    ProGuard is keeping all optional attributes (including variable names) because your configuration contains a line "-keepattributes **".

    Eric

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks