Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Add project specific ProGuard rules here.
- # By default, the flags in this file are appended to flags specified
- # in E:\adt-bundle-windows-x86_64-20140702\sdk/tools/proguard/proguard-android.txt
- # You can edit the include path and order by changing the proguardFiles
- # directive in build.gradle.
- #
- # For more details, see
- # http://developer.android.com/guide/developing/tools/proguard.html
- # Add any project specific keep options here:
- # 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 *;
- #}
- -keepattributes *Annotation*
- -keepattributes Signature
- -keep class android.support.** { *; }
- -keep class com.google.** { *; }
- -keep class com.readystatesoftware.** { *; }
- -keep class okio.** { *; }
- -keep class com.soundcloud.android.** { *; }
- ######################## Crashlytics 1.+ ############################
- -keep class com.crashlytics.** { *; }
- -keep class com.crashlytics.android.**
- -keepattributes SourceFile,LineNumberTable
- -keep public class * extends java.lang.Exception
- #####################################################################
- ####################### Retrofit ###############################
- -dontwarn rx.**
- -dontwarn okio.**
- -dontwarn com.squareup.okhttp.**
- -keep class com.squareup.okhttp.** { *; }
- -keep interface com.squareup.okhttp.** { *; }
- -dontwarn retrofit.**
- -dontwarn retrofit.appengine.UrlFetchClient
- -keep class retrofit.** { *; }
- -keepclasseswithmembers class * {
- @retrofit.http.* <methods>;
- }
- -keepattributes Exceptions
- -keepattributes Signature
- ###########################################################################
- ############################### GSON 2.2.4 specific rules #################
- # Gson uses generic type information stored in a class file when working with fields. Proguard
- # removes such information by default, so configure it to keep all of it.
- -keepattributes Signature
- # For using GSON @Expose annotation
- -keepattributes *Annotation*
- -keepattributes EnclosingMethod
- # Gson specific classes
- -keep class sun.misc.Unsafe { *; }
- -keep class com.google.gson.stream.** { *; }
- ########################################################################
- #################### Sqlite ##################################
- -keep class android.database.sqlite.** { *; }
- ##############################################################
- ############################ Square Otto specific rules ################
- -keepclassmembers class ** {
- @com.squareup.otto.Subscribe public *;
- @com.squareup.otto.Produce public *;
- }
- #######################################################################
- ###################### ViewPagerIndicator ##########################
- -keep class com.viewpagerindicator.** {
- *;
- }
- #####################################################################
- ###################### QRCode ##########################
- -keep class com.google.zxing.qrcode.** {
- *;
- }
- -keep class net.glxn.qrgen.android.** {
- *;
- }
- #####################################################################
- ###################### universalimageloader ##########################
- -keep class com.nostra13.universalimageloader.** {*;}
- ######################################################################
- ##################### io.fabric.sdk ##########################
- -keep class io.fabric.sdk.android.** {*;}
- #####################################################################
- ##################### io.fabric.sdk ##########################
- -keep class me.zhanghai.android.materialprogressbar.** {*;}
- #####################################################################
- ################ Google Play Services 4.3.23 specific rules #############
- -keep class * extends java.util.ListResourceBundle {
- protected Object[][] getContents();
- }
- -keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
- public static final *** NULL;
- }
- -keepnames @com.google.android.gms.common.annotation.KeepName class *
- -keepclassmembernames class * {
- @com.google.android.gms.common.annotation.KeepName *;
- }
- -keepnames class * implements android.os.Parcelable {
- public static final ** CREATOR;
- }
- ############################################################################
- ###################### ormlite #########################
- # OrmLite uses reflection
- -keep class com.j256.**
- -keepclassmembers class com.j256.** { *; }
- -keep enum com.j256.**
- -keepclassmembers enum com.j256.** { *; }
- -keep interface com.j256.**
- -keepclassmembers interface com.j256.** { *; }
- -keepclassmembers class * {
- public <init>(android.content.Context);
- }
- -keepclassmembers class classpath.** {
- public *;
- }
- # Keep the helper class and its constructor
- -keep class * extends com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper
- -keepclassmembers class * extends com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper {
- public <init>(android.content.Context);
- }
- # Keep the annotations
- -keepattributes *Annotation*
- # Keep all model classes that are used by OrmLite
- # Also keep their field names and the constructor
- -keep @com.j256.ormlite.table.DatabaseTable class * {
- @com.j256.ormlite.field.DatabaseField <fields>;
- @com.j256.ormlite.field.ForeignCollectionField <fields>;
- }
- -keepattributes Signature
- ############################################################################
- #-keep class vn.dsvn.app.models.** { *; }
- -keepclassmembers class **.R$* {
- public static <fields>;
- }
- -keep class vn.dsvn.sale.app.models.manager.** {*;}
- -keep class vn.dsvn.sale.app.models.dao.** {*;}
- -keep class vn.dsvn.sale.app.models.entities.** {*;}
- -keep class vn.dsvn.sale.app.service.response.** {*;}
- -keep class vn.dsvn.sale.app.service.request.** {*;}
- #-keep public class * extends android.support.v4.app.Fragment
- -dontwarn com.viewpagerindicator.**
- -dontwarn java.nio.file.Files
- -dontwarn java.nio.file.Path
- -dontwarn java.nio.file.OpenOption
- -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
- -dontwarn java.lang.invoke.MethodHandles
- -dontwarn java.lang.invoke.MethodHandle
- -dontwarn java.lang.reflect.Method
- -dontwarn java.lang.invoke.MethodHandles$Lookup
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement