north2016 / T-MVP

Android AOP Architecture by Apt, AspectJ, Javassisit, based on Realm+Databinding+MVP+Retrofit+Rxjava2
2.7k stars 631 forks source link

aop在debug上起作用 release上失效 #32

Closed ghost closed 7 years ago

north2016 commented 7 years ago

aop注解的相关类需要防混淆

north2016 commented 7 years ago

方法一:针对自己的注解在混淆文件里keep ,只适用于注解aop的方式 方法二:使用@Keep注解,在proguard-rules.pro配置文件中加入以下规则

-dontskipnonpubliclibraryclassmembers -printconfiguration -keep,allowobfuscation @interface android.support.annotation.Keep

-keep @android.support.annotation.Keep class -keepclassmembers class { @android.support.annotation.Keep *; } 哪里有aop @Keep哪里