But current @Keep annotation is transated to -keep <http://proguard.sourceforge.net/manual/usage.html#keep> not -keep <http://proguard.sourceforge.net/manual/usage.html#keep>,allowshrinking <http://proguard.sourceforge.net/manual/usage.html#allowshrinking>, right?
-- Ing. Tomáš Procházka 2016-05-25 3:21 GMT+02:00 Makoto Yamazaki <[email protected]>: > ProGuard manual says that -keepnames is the same with -keep > <http://proguard.sourceforge.net/manual/usage.html#keep>,allow shrinking > <http://proguard.sourceforge.net/manual/usage.html#allowshrinking> > That means -keep will preserve names as well. > > http://proguard.sourceforge.net/manual/usage.html > > On Wed, May 25, 2016 at 6:33 AM, Tomáš Procházka < > [email protected]> wrote: > >> Yes. -keep prevent just before remove class/method, but not before >> obfuscation. >> If you wan to keep also the names (for reflection access, serialization, >> etc) you must to use -keepnames >> >> Dne pondělí 23. května 2016 18:06:57 UTC+2 Michal Bendowski napsal(a): >> >>> @Keep is recognized by "-keep" rules in the default ProGuard files, >>> which means the names will be preserved as well, right? >>> >>> Michal >>> >>> On Friday, May 20, 2016 at 2:56:02 PM UTC+1, Tomáš Procházka wrote: >>>> >>>> @Keep annotation is very usefull, you mentioned it on the I/O as new >>>> think bat id exist long time already. >>>> Bud I think that sometimes keep the method/class/field is not enough. >>>> Sometimes is also important keep the name of the method/class/field. >>>> O found @KeepName annotation, but in the com.google.android.gms.common. >>>> annotation package, so I think that it is not supported now by build >>>> plugin. >>>> It would be very useful to add this also to the support library. >>>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "adt-dev" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > YAMAZAKI Makoto > > -- > You received this message because you are subscribed to a topic in the > Google Groups "adt-dev" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/adt-dev/ter404z4EKw/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
