Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is a configuration file for ProGuard.
- # http://proguard.sourceforge.net/index.html#manual/usage.html
- -dontusemixedcaseclassnames
- -dontskipnonpubliclibraryclasses
- -verbose
- # Optimization is turned off by default. Dex does not like code run
- # through the ProGuard optimize and preverify steps (and performs some
- # of these optimizations on its own).
- #-dontoptimize
- #-dontpreverify
- # If you want to enable optimization, you should include the
- # following:
- -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.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.support.v4.app.DialogFragment
- -keep public class * extends android.app.Fragment
- -dontwarn android.app.Activity
- -dontwarn android.app.AppCompatActivity
- # 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);
- public void set*(...);
- }
- -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>;
- }
- -keep class com.google.android.gms.** { *; }
- -keepattributes SourceFile,LineNumberTable,InnerClasses,Signature,Exceptions
- -keep class android.support.v4.**
- -dontwarn android.support.v4.**
- -dontwarn android.support.**
- -dontwarn com.github.barteksc.**
- -dontwarn okio.**
- -dontwarn com.github.bumptech.glide.**
- -dontwarn io.github.douglasjunior.androidSimpleTooltip.**
- # JSR 305 annotations are for embedding nullability information.
- -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
- # Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.
- -dontwarn org.codehaus.mojo.animal_sniffer.*
- # OkHttp platform used only on JVM and when Conscrypt dependency is available.
- -dontwarn okhttp3.internal.platform.ConscryptPlatform
- -keep public class * implements com.bumptech.glide.module.GlideModule
- -keep public class * extends com.bumptech.glide.module.AppGlideModule
- -keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
- **[] $VALUES;
- public *;
- }
- -dontwarn com.bumptech.glide.load.resource.bitmap.VideoDecoder
- #firebase
- -keepattributes Signature
- -keep class com.firebase.** { *; }
- -keep class org.apache.** { *; }
- -keepnames class com.fasterxml.jackson.** { *; }
- -keepnames class javax.servlet.** { *; }
- -keepnames class org.ietf.jgss.** { *; }
- -dontwarn org.apache.**
- -dontwarn org.w3c.dom.**
- -dontwarn android.support.v4.**
- -dontwarn com.google.android.gms.**
- -dontwarn com.google.firebase.**
- -keep class * extends com.myCompany.package.flavor.Flavor { *; }
- -keep class com.myCompany.** { *; }
- #realm
- -keep class io.realm.annotations.RealmModule
- -keep @io.realm.annotations.RealmModule class *
- -keep class io.realm.internal.Keep
- -keep @io.realm.internal.Keep class *
- -dontwarn javax.**
- -dontwarn io.realm.**
- #
- -dontwarn com.android.vending.expansion.zipfile.**, jcifs.smb.SmbFile, jcifs.http.*, com.google.android.gms.cast.CastDevice
- #retrofit
- # Retrofit does reflection on generic parameters. InnerClasses is required to use Signature and
- # EnclosingMethod is required to use InnerClasses.
- -keepattributes Signature, InnerClasses, EnclosingMethod
- # Retrofit does reflection on method and parameter annotations.
- -keepattributes RuntimeVisibleAnnotations, RuntimeVisibleParameterAnnotations
- # Retain service method parameters when optimizing.
- -keepclassmembers,allowshrinking,allowobfuscation interface * {
- @retrofit2.http.* <methods>;
- }
- # Ignore annotation used for build tooling.
- -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
- # Ignore JSR 305 annotations for embedding nullability information.
- -dontwarn javax.annotation.**
- # Guarded by a NoClassDefFoundError try/catch and only used when on the classpath.
- -dontwarn kotlin.Unit
- # Top-level functions that can only be used by Kotlin.
- -dontwarn retrofit2.KotlinExtensions
- # With R8 full mode, it sees no subtypes of Retrofit interfaces since they are created with a Proxy
- # and replaces all potential values with null. Explicitly keeping the interfaces prevents this.
- #-if interface * { @retrofit2.http.* <methods>; }
- -keep,allowobfuscation interface <1>
- #appcompat
- -keep public class android.support.v7.widget.** { *; }
- -keep public class android.support.v7.internal.widget.** { *; }
- -keep public class android.support.v7.internal.view.menu.** { *; }
- -keep public class * extends android.support.v4.view.ActionProvider {
- public <init>(android.content.Context);
- }
- -keep class io.realm.annotations.RealmModule
- -keep @io.realm.annotations.RealmModule class *
- -keep class io.realm.internal.Keep
- -keep @io.realm.internal.Keep class *
- -dontwarn javax.**
- -dontwarn io.realm.**
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement