greenDAO ProGuard rules

greenDAO - open source Android ORM making development for SQLite databases fun again.

It relieves developers from dealing with low-level database requirements while saving development time.

ProGuard rules for greenDAO

All unused classes and class members removed in the shrinking step. ProGuard writes out class files named 'a.class', 'b.class', etc. in the obfuscation step. Add the next rules in ProGuard configuration file.

### greenDAO 3
-keepclassmembers class * extends org.greenrobot.greendao.AbstractDao {
public static java.lang.String TABLENAME;
}
-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

For more information about please see greenDAO website.

Related ProGuard rules

Static Gson ProGuard rules

Popular ProGuard rules