From abc1940fc140c27247768a7a8cb8cbf8097cb552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7F?= <284061805@qq.com> Date: Mon, 24 Jun 2019 14:04:32 +0800 Subject: [PATCH] Update AndProGuard-GreenDAO.pro --- library/AndProGuard-GreenDAO.pro | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/library/AndProGuard-GreenDAO.pro b/library/AndProGuard-GreenDAO.pro index 46d7b3c..a285efa 100644 --- a/library/AndProGuard-GreenDAO.pro +++ b/library/AndProGuard-GreenDAO.pro @@ -1,11 +1,17 @@ -# http://greenrobot.org/eventbus/documentation/proguard/ --keepattributes *Annotation* --keepclassmembers class * { - @org.greenrobot.eventbus.Subscribe ; +# http://greenrobot.org/greendao/documentation//technical-faq +### greenDAO 3 +-keepclassmembers class * extends org.greenrobot.greendao.AbstractDao { +public static java.lang.String TABLENAME; } --keep enum org.greenrobot.eventbus.ThreadMode { *; } - -# Only required if you use AsyncExecutor --keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent { - (java.lang.Throwable); -} \ No newline at end of file +-keep class **$Properties + +# If you do not use SQLCipher: +-dontwarn org.greenrobot.greendao.database.** +# If you do not use RxJava: +-dontwarn rx.** + +### greenDAO 2 +-keepclassmembers class * extends de.greenrobot.dao.AbstractDao { +public static java.lang.String TABLENAME; +} +-keep class **$Properties