Skip to content

Instantly share code, notes, and snippets.

@SergeyKharuk
Created January 21, 2021 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SergeyKharuk/f7bc59c328662fd39232c80bfd87eba8 to your computer and use it in GitHub Desktop.
Save SergeyKharuk/f7bc59c328662fd39232c80bfd87eba8 to your computer and use it in GitHub Desktop.
proguard-rules.pro file of Twelve project
#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