Created
January 21, 2021 22:00
-
-
Save SergeyKharuk/f7bc59c328662fd39232c80bfd87eba8 to your computer and use it in GitHub Desktop.
proguard-rules.pro file of Twelve project
This file contains 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
#1. gson | |
-keepclassmembers,allowobfuscation class * { | |
@com.google.gson.annotations.SerializedName <fields>; | |
} | |
-keepclassmembers enum * { | |
@com.google.gson.annotations.SerializedName <fields>; | |
} | |
-keep,allowobfuscation interface com.google.gson.annotations.SerializedName | |
#2. | |
-keepattributes SourceFile,LineNumberTable # Keep file names and line numbers. | |
-keep public class * extends java.lang.Exception # Optional: Keep custom exceptions. | |
# Keep the BuildConfig | |
-keep class com.twelve.BuildConfig { *; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment