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 1/2] 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 From 6c43e05b4e7c07a843e3691a36176125debca46d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7F?= <284061805@qq.com> Date: Mon, 24 Jun 2019 14:06:05 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4b9063f..ae774f8 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ AndProGuard 是为了方便Android开发者防混淆配置的库,只要使用 #### Step 2. Add the dependency ``` dependencies { - compile 'com.github.F1ReKing:AndProGuard:x.y.z' + implementation 'com.github.F1ReKing:AndProGuard:x.y.z' } ``` Current latest version: [![](https://jitpack.io/v/F1ReKing/AndProGuard.svg)](https://jitpack.io/#F1ReKing/AndProGuard)