Created
January 11, 2018 13:46
-
-
Save aftabsikander/a6698744ed9005b13de09d94a8a1eccd to your computer and use it in GitHub Desktop.
Proguard Rule
This file contains hidden or 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
| -dontwarn com.google.android.gms.** | |
| -dontwarn com.github.siyamed.shapeimageview.** | |
| -keepattributes Signature | |
| -keepattributes *Annotation*, EnclosingMethod | |
| -dontwarn com.google.android.gms.** | |
| -dontwarn android.support.** | |
| -optimizationpasses 25 | |
| -dontusemixedcaseclassnames | |
| -dontpreverify | |
| -verbose | |
| -printmapping out.map | |
| -renamesourcefileattribute SourceFile | |
| -keepattributes SourceFile,LineNumberTable | |
| -dontshrink | |
| -keep class ** { *; } | |
| ############################## OKHTTP & Retrofit ############################# | |
| -keepattributes *Annotation* | |
| #-keep class okhttp3.** { *; } | |
| #-keep interface okhttp3.** { *; } | |
| -keep class com.squareup.okhttp3.** { *; } | |
| -keep interface com.squareup.okhttp3.** { *; } | |
| #-keep class com.squareup.okhttp3.internal.** { *; } | |
| -dontwarn okhttp3.** | |
| -dontwarn okio.** | |
| -dontwarn com.squareup.okio.** | |
| -dontwarn com.squareup.okhttp.** | |
| -dontwarn javax.annotation.** | |
| #-dontwarn com.squareup.okhttp3.internal.huc.** | |
| # Platform calls Class.forName on types which do not exist on Android to determine platform. | |
| -dontnote retrofit2.Platform | |
| # Platform used when running on Java 8 VMs. Will not be used at runtime. | |
| -dontwarn retrofit2.Platform$Java8 | |
| # Retain generic type information for use by reflection by converters and adapters. | |
| -keepattributes Signature | |
| # Retain declared checked exceptions for use by a Proxy instance. | |
| -keepattributes Exceptions | |
| -keepclasseswithmembers class * { | |
| @retrofit.http.* <methods>; | |
| } | |
| -dontwarn com.squareup.okhttp.internal.huc.** | |
| -dontwarn retrofit.appengine.UrlFetchClient | |
| -dontwarn rx.** | |
| -dontwarn okio.** | |
| #-keepclasseswithmembers class * { | |
| # @retrofit2.http.* <methods>; | |
| #} | |
| #-keepclasseswithmembers interface * { | |
| # @retrofit2.http.* <methods>; | |
| #} | |
| ############################## OKHTTP ############################# | |
| ############################## RxJava ############################# | |
| -dontwarn sun.misc.** | |
| -keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* { | |
| long producerIndex; | |
| long consumerIndex; | |
| } | |
| -keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef { | |
| rx.internal.util.atomic.LinkedQueueNode producerNode; | |
| } | |
| -keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef { | |
| rx.internal.util.atomic.LinkedQueueNode consumerNode; | |
| } | |
| -dontnote rx.internal.util.PlatformDependent | |
| ############################## RxJava ############################# | |
| ############################## EventBus ############################# | |
| -keepattributes *Annotation* | |
| -keepclassmembers class ** { | |
| @org.greenrobot.eventbus.Subscribe <methods>; | |
| } | |
| -keep enum org.greenrobot.eventbus.ThreadMode { *; } | |
| # Only required if you use AsyncExecutor | |
| -keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent { | |
| <init>(java.lang.Throwable); | |
| } | |
| ############################## EventBus ############################# | |
| ############################## JODA TIME ############################# | |
| -dontwarn org.joda.convert.** | |
| -dontwarn org.joda.time.** | |
| -keep class org.joda.time.** { *; } | |
| -keep interface org.joda.time.** { *; } | |
| ############################## JODA TIME ############################# | |
| ############################### uCrop ##################################### | |
| -dontwarn com.yalantis.ucrop** | |
| -keep class com.yalantis.ucrop** { *; } | |
| -keep interface com.yalantis.ucrop** { *; } | |
| -keep class com.yalantis.ucrop.view.widget.HorizontalProgressWheelView | |
| ############################### uCrop ##################################### | |
| -keep class com.android.vending.billing.** | |
| # SAMSUNG | |
| -keep class com.sec.android.iap.** | |
| # TStore | |
| -dontwarn android.webkit.WebView | |
| -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.BackupAgentHelper | |
| -keep public class * extends android.preference.Preference | |
| -keep public class com.android.vending.licensing.ILicensingService | |
| -keepclasseswithmembernames class * { | |
| native <methods>; | |
| } | |
| -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); | |
| } | |
| -keepclassmembers enum * { | |
| public static **[] values(); | |
| public static ** valueOf(java.lang.String); | |
| } | |
| -keep class * implements android.os.Parcelable { | |
| public static final android.os.Parcelable$Creator *; | |
| } | |
| -assumenosideeffects class android.util.Log { | |
| public static *** d(...); | |
| public static *** w(...); | |
| public static *** v(...); | |
| public static *** i(...); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment