Showing posts with label binding. Show all posts
Showing posts with label binding. Show all posts

FragmentArgs ProGuard rules

FragmentArgs – is an annotation processor to create arguments for Android fragments without using reflections.

FragmentArgs generates Java code at compile time.

ProGuard rules for FragmentArgs

Add the following lines to your ProGuard configuration proguard.cfg file in project.

# FragmentArgs
-keep class com.hannesdorfmann.fragmentargs.** { *; }

For more information about FragmentArgs please see the website.

Related ProGuard rules

Android-State ProGuard rules

Android-State – a utility library for Android to save objects in a Bundle without any boilerplate.

It uses an annotation processor to wire up all dependencies.

ProGuard rules for Android-State

Add the following lines to your ProGuard configuration proguard.cfg file in project.

# Android-State
-dontwarn com.evernote.android.state.**
-keep class com.evernote.android.state.** { *; }
-keep class **$$StateSaver { *; }
-keepclasseswithmembernames class * {
    @com.evernote.android.state.* ;
}
-keepnames class * { @com.evernote.android.state.State *;}

For more information about Android-State please see the website.

Related ProGuard rules

Butter Knife ProGuard rules

Butter Knife - library that bind Android views and callbacks to fields and methods.

Annotate fields with @BindView and a view ID for Butter Knife to find and automatically cast the corresponding view in your layout.

ProGuard rules for Butter Knife

Add the following lines to your ProGuard configuration proguard.cfg file in project.

-keep class butterknife.** { *; }
-dontwarn butterknife.internal.**
-keep class **$$ViewBinder { *; }
-keepclasseswithmembernames class * {
    @butterknife.* ;
}
-keepclasseswithmembernames class * {
    @butterknife.* ;
}

For more information about Butter Knife please see the website.

Related ProGuard rules

AutoParcel ProGuard rules

AutoParcel - AutoValue extension that enables Parcelable values generation.

ProGuard rules for AutoParcel

ProGuard removes in the optimization step unused classes, and attributes and methods. ProGuard renames classes and class members that are not entry points.

Parceler ProGuard rules

Parceler - code generation library that generates the Android Parcelable boilerplate source code. No longer do you have to implement the Parcelable interface, the writeToParcel() or createFromParcel() or the public static final CREATOR. You simply annotate a POJO with @Parcel and Parceler does the rest.

ProGuard rules for Parceler

Add the following lines to your ProGuard configuration in project.

# Parceler library
-keep interface org.parceler.Parcel
-keep @org.parceler.Parcel class * { *; }
-keep class **$$Parcelable { *; }

For more information about Parceler please see the website.

Related ProGuard rules

Icepick ProGuard rules

Icepick - Android library that eliminates the boilerplate of saving and restoring instance state. It uses annotation processing to generate code that does bundle manipulation and key generation, so that you don't have to write it yourself.

ProGuard rules for Icepick

By default, shrinking is applied; all classes and class members are removed. By default, short names like 'a', 'b', etc. are used as obfuscated names. Use the following rules in your proguard-rules.pro configuration file.

Static Gson ProGuard rules

Popular ProGuard rules