RxGalleryFinal ProGuard rules

RxGalleryFinal – is an Android image and video file selector library.

RxGalleryFinal support for multiple, radio, film and cutting, the theme can be custom, no mandatory binding third-party image loader.

ProGuard rules for RxGalleryFinal

ProGuard removes classes, methods, fields and and attributes in the shrinking step. In the obfuscation step, ProGuard renames classes and class members that are not entry points. Add the following rules to configuration file to fix errors.

#1.support-v7-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 (android.content.Context);
}

#2.rx
-dontwarn io.reactivex.**
-keep io.reactivex.**
-keepclassmembers class io.reactivex.** { *; }

#3.retrolambda
-dontwarn java.lang.invoke.*

#4.support-v4
-keep class android.support.v4.** { *; }
-keep interface android.support.v4.** { *; }

#5.ucrop
-dontwarn com.yalantis.ucrop**
-keep class com.yalantis.ucrop** { *; }
-keep interface com.yalantis.ucrop** { *; }

#6.photoview
-keep class uk.co.senab.photoview** { *; }
-keep interface uk.co.senab.photoview** { *; }

#7.rxgalleryfinal
-keep class cn.finalteam.rxgalleryfinal.ui.widget** { *; }

-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 *;
}
-keepclassmembers class **.R$* {
    public static ;
}

-keepattributes *Annotation*
-keepclasseswithmembernames class * {
    native ;
}
-keepclassmembers public class * extends android.view.View {
   void set*(***);
   *** get*();
}

For more information about please see RxGalleryFinal website.

Static Gson ProGuard rules

Popular ProGuard rules