# Restore some Source file names and restore approximate line numbers in the stack traces,
# otherwise the stack traces are pretty useless
-keepattributes SourceFile,LineNumberTable
-dontskipnonpubliclibraryclassmembers

#-keep class org.bouncycastle.** { *; }
-keep class com.itextpdf.** { *; }
-dontwarn org.bouncycastle.**
-dontwarn com.itextpdf.**

-keepclassmembers class org.totschnig.myexpenses.provider.filter.** {
 public <init>(java.lang.String,java.lang.String[]);
}

#Guava
-dontwarn javax.annotation.**
-dontwarn javax.inject.**
-dontwarn sun.misc.Unsafe

-keepclassmembers class * {
    @android.support.annotation.VisibleForTesting *;
}

-keep enum org.totschnig.myexpenses.activity.*$HelpVariant

-keep class android.support.v7.widget.SearchView { *; }

-keep class se.emilsjolander.stickylistheaders.StickyListHeadersListView { *; }

#Picasso
-dontwarn com.squareup.okhttp.**

# needed by MyTestRunner
-keepclassmembers class org.totschnig.myexpenses.MyApplication {
    public static void setInstrumentationTest(boolean);
    public static void cleanUpAfterTest();
}

# Espresso Contrib DrawerActions accesses this through reflection
-keepclassmembers class android.support.v4.widget.DrawerLayout {
    private android.support.v4.widget.DrawerLayout$DrawerListener mListener;
    public void setDrawerListener(android.support.v4.widget.DrawerLayout$DrawerListener);
}

-dontwarn icepick.**
-keep class icepick.** { *; }
-keep class **$$Icepick { *; }
-keepclasseswithmembernames class * {
    @icepick.* <fields>;
}