Created
July 24, 2018 12:41
-
-
Save alouanemed/f211500e23b5cb97b2b3f4fac2bbf61d to your computer and use it in GitHub Desktop.
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
-dontusemixedcaseclassnames | |
-dontskipnonpubliclibraryclasses | |
-verbose | |
-dontpreverify | |
# If you want to enable optimization, remove this for a 1-2% less but longer compile time | |
#-dontoptimize | |
-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/* | |
-optimizationpasses 5 | |
-allowaccessmodification | |
# Note that you cannot just include these flags in your own | |
# configuration file; if you are including this file, optimization | |
# will be turned off. You'll need to either edit this file, or | |
# duplicate the contents of this file and remove the include of this | |
# file from your project's proguard.config path property. | |
-keep public class * extends android.app.Activity | |
-keep public class * extends android.app.Application | |
-keep public class * extends android.app.Service | |
-keep public class * extends android.content.BroadcastReceiver | |
-keep public class * extends android.content.ContentProvider | |
-keep public class * extends android.app.backup.BackupAgent | |
-keep public class * extends android.preference.Preference | |
-keep public class * extends android.support.v4.app.Fragment | |
-keep public class * extends android.app.Fragment | |
-keep public class com.android.vending.licensing.ILicensingService | |
# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native | |
#-keepclasseswithmembernames class * { | |
# native <methods>; | |
#} | |
-keep public class * extends android.view.View { | |
public <init>(android.content.Context); | |
public <init>(android.content.Context, android.util.AttributeSet); | |
public <init>(android.content.Context, android.util.AttributeSet, int); | |
} | |
-keepclasseswithmembers class * { | |
public <init>(android.content.Context, android.util.AttributeSet); | |
} | |
-keepclasseswithmembers class * { | |
public <init>(android.content.Context, android.util.AttributeSet, int); | |
} | |
-keepclassmembers class * extends android.app.Activity { | |
public void *(android.view.View); | |
} | |
# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations | |
-keepclassmembers enum * { | |
public static **[] values(); | |
public static ** valueOf(java.lang.String); | |
} | |
-keep class * implements android.os.Parcelable { | |
public static final android.os.Parcelable$Creator *; | |
} | |
-keepclassmembers class **.R$* { | |
public static <fields>; | |
} | |
# The support library contains references to newer platform versions. | |
# Don't warn about those in case this app is linking against an older | |
# platform version. We know about them, and they are safe. | |
-dontwarn android.support.** | |
-keepattributes SourceFile,LineNumberTable | |
-keepattributes *Annotation* | |
-renamesourcefileattribute SourceFile | |
# FragmentArgs | |
-keep class com.hannesdorfmann.fragmentargs.** { *; } | |
# dagger | |
-dontwarn com.google.errorprone.annotations.** | |
-keepclassmembers,allowobfuscation class * { | |
@javax.inject.* *; | |
@dagger.* *; | |
<init>(); | |
} | |
-keep class javax.inject.** { *; } | |
-keep class **$$ModuleAdapter | |
-keep class **$$InjectAdapter | |
-keep class **$$StaticInjection | |
-keep class dagger.** { *; } | |
-dontwarn dagger.internal.codegen.** | |
-keep class * extends dagger.internal.Binding | |
-keep class * extends dagger.internal.ModuleAdapter | |
-keep class * extends dagger.internal.StaticInjection | |
# leak canary | |
-keep class org.eclipse.mat.** { *; } | |
-keep class com.squareup.leakcanary.** { *; } | |
-dontwarn android.app.Notification | |
# Kotlin | |
-keep class kotlin.Metadata { *; } | |
-dontnote kotlin.internal.PlatformImplementationsKt | |
-dontnote kotlin.reflect.jvm.internal.** | |
#Firebase | |
-keepattributes Signature | |
# This rule will properly ProGuard all the model classes in | |
-keepclassmembers class co.netguru.android.chatandroll.data.model.** { | |
*; | |
} | |
# Retrofit | |
-dontnote retrofit2.Platform | |
-dontwarn retrofit2.Platform$Java8 | |
-keepattributes Exceptions | |
#OkHttp3 | |
-dontwarn okhttp3.** | |
-dontwarn okio.** | |
-dontwarn javax.annotation.** | |
# A resource is loaded with a relative path so the package of this class must be preserved. | |
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase | |
-keep class okhttp3.** { *; } | |
-keep interface okhttp3.** { *; } | |
-dontwarn com.squareup.okhttp.** | |
-dontwarn okhttp3.internal.platform.* | |
-dontwarn org.codehaus.mojo.animal_sniffer.* | |
-dontwarn okhttp3.internal.platform.ConscryptPlatform | |
#other | |
-dontwarn com.facebook.infer.annotation.ReturnsOwnership | |
-dontwarn com.facebook.infer.annotation.Functional | |
-dontwarn java.lang.invoke.** | |
#kotlin | |
-keep class kotlin.** { *; } | |
-keep class kotlin.Metadata { *; } | |
-dontwarn kotlin.** | |
-keepclassmembers class **$WhenMappings { | |
<fields>; | |
} | |
-keepclassmembers class kotlin.Metadata { | |
public <methods>; | |
} | |
-assumenosideeffects class kotlin.jvm.internal.Intrinsics { | |
static void checkParameterIsNotNull(java.lang.Object, java.lang.String); | |
} | |
# Fabric/Crashlytics | |
-keep class com.crashlytics.** { *; } | |
-dontwarn com.crashlytics.** | |
-keep class com.chad.library.adapter.** { | |
*; | |
} | |
#volley | |
-keep class com.android.volley.** {*;} | |
-keep class com.android.volley.toolbox.** {*;} | |
-keep class com.android.volley.Response$* { *; } | |
-keep class com.android.volley.Request$* { *; } | |
-keep class com.android.volley.RequestQueue$* { *; } | |
-keep class com.android.volley.toolbox.HurlStack$* { *; } | |
-keep class com.android.volley.toolbox.ImageLoader$* { *; } | |
-keep class !com.alouane.app.product.** { *; } | |
-keep class !com.alouane.app.products.** { *; } | |
-keep class !com.facebook.** { *; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment