There is one line in the default proguard configuration of android sdk:
-keepattributes *Annotation*
According to Proguard Manual, this line equals to:
-keepattributes RuntimeVisibleAnnotations,RuntimeInvisibleAnnotations,RuntimeVisibleParameterAnnotations,RuntimeInvisibleParameterAnnotations,RuntimeVisibleTypeAnnotations,RuntimeInvisibleTypeAnnotations,AnnotationDefault
In my opinion, maybe the configuration below is enough:
-keepattributes RuntimeVisibleAnnotations,RuntimeVisibleParameterAnnotations,RuntimeVisibleTypeAnnotations,AnnotationDefault
Have I missing something? Why the recommend configuration keep all this things?