OrmLite ProGuard rules

OrmLite – library that provides some simple, lightweight functionality for persisting Java objects to SQL databases while avoiding the complexity and overhead of more standard ORM packages.

ProGuard rules for OrmLite

ProGuard typically reads the input jars and removes unused classes, fields, methods, and attributes. When obfuscating, ProGuard writes out class files named 'a.class', 'b.class', etc. You have to set up a ProGuard configuration in your proguard-rules.pro file.

# OrmLite
-dontwarn com.j256.ormlite.android.**
-dontwarn com.j256.ormlite.logger.**
-dontwarn com.j256.ormlite.misc.**

-keepattributes *DatabaseField*
-keepattributes *DatabaseTable*
-keepattributes *SerializedName*
-keep class com.j256.**
-keepclassmembers class com.j256.** { *; }
-keep enum com.j256.**
-keepclassmembers enum com.j256.** { *; }
-keep interface com.j256.**
-keepclassmembers interface com.j256.** { *; }

For more information about please see OrmLite website.

Related ProGuard rules

Static Gson ProGuard rules

Popular ProGuard rules