Last active
February 20, 2020 06:35
-
-
Save Ankur008/36ce2a43500d362b19780219a37da0f3 to your computer and use it in GitHub Desktop.
Proguard file
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
# Add project specific ProGuard rules here. | |
# You can control the set of applied configuration files using the | |
# proguardFiles setting in build.gradle. | |
# | |
# For more details, see | |
# http://developer.android.com/guide/developing/tools/proguard.html | |
# If your project uses WebView with JS, uncomment the following | |
# and specify the fully qualified class name to the JavaScript interface | |
# class: | |
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | |
# public *; | |
#} | |
# Uncomment this to preserve the line number information for | |
# debugging stack traces. | |
#-keepattributes SourceFile,LineNumberTable | |
# If you keep the line number information, uncomment this to | |
# hide the original source file name. | |
#-renamesourcefileattribute SourceFile | |
#-dontobfuscate | |
# Add this global rule | |
-keepattributes Signature | |
#keep model file | |
-keep class <path_to_package>.firebasemodels.** { *; } | |
#keep all constant and helper file | |
-keep class <path_to_package>.utils.** {*;} | |
# If you keep the line number information, uncomment this to | |
# hide the original source file name. | |
#-renamesourcefileattribute SourceFile | |
-dontusemixedcaseclassnames | |
-dontskipnonpubliclibraryclassmembers | |
-verbose | |
########## | |
# Maintain all attributes: | |
# To avoid having to add each in several different places | |
# below. | |
# | |
# You may need to keep Exceptions if using dynamic proxies | |
# (e. g. Retrofit), Signature and *Annotation* if using reflection | |
# (e. g. Gson's ReflectiveTypeAdapterFactory). | |
########## | |
-keepattributes Exceptions,InnerClasses,Signature,Deprecated, SourceFile,LineNumberTable,*Annotation*,EnclosingMethod | |
########## | |
# Parcelables: Mantain the parcelables working | |
########## | |
-keep class * implements android.os.Parcelable { | |
public static final android.os.Parcelable$Creator *; | |
} | |
-keepclassmembers class * implements android.os.Parcelable { | |
static ** CREATOR; | |
} | |
-keepclassmembers class **.R$* { | |
public static <fields>; | |
} | |
############# | |
# Serializables | |
############# | |
#-keepclassmembers class * implements java.io.Serializable { | |
# static final long serialVersionUID; | |
# private static final java.io.ObjectStreamField[] serialPersistentFields; | |
# private void writeObject(java.io.ObjectOutputStream); | |
# private void readObject(java.io.ObjectInputStream); | |
# java.lang.Object writeReplace(); | |
# java.lang.Object readResolve(); | |
#} | |
############# | |
# HttpClient Legacy (Ignore) - org.apache.http legacy | |
############# | |
-dontnote android.net.http.* | |
-dontnote org.apache.commons.codec.** | |
-dontnote org.apache.http.** | |
########## | |
# Crashlytics: | |
# Adding this in to preserve line numbers so that the stack traces can be remapped | |
########## | |
-renamesourcefileattribute SourceFile | |
-keepattributes SourceFile,LineNumberTable | |
############# | |
# Firebase crash | |
############# | |
-dontnote com.google.firebase.** | |
-dontwarn com.google.firebase.crash.** | |
############# | |
# Firebase storage, messaging | |
############# | |
-keepclassmembers class * extends com.google.android.gms.internal.measurement.zzyv { | |
<fields>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment