Skip to content

Instantly share code, notes, and snippets.

@Audhil
Created April 23, 2019 09:49
Show Gist options
  • Save Audhil/6ef091fdbd894444ddc4d11b85d2b939 to your computer and use it in GitHub Desktop.
Save Audhil/6ef091fdbd894444ddc4d11b85d2b939 to your computer and use it in GitHub Desktop.
ProGuard rules to keep Room DB entities
# Keep all Room Entities.
-keep @androidx.room.Entity class * {*;}
-keepclasseswithmembers class * {
@androidx.room.Entity <methods>;
}
-keepclasseswithmembers class * {
@androidx.room.Entity <fields>;
}
-keepclasseswithmembers class * {
@androidx.room.Entity <init>(...);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment