Created
April 23, 2019 09:49
-
-
Save Audhil/6ef091fdbd894444ddc4d11b85d2b939 to your computer and use it in GitHub Desktop.
ProGuard rules to keep Room DB entities
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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