Skip to content

Commit

Permalink
updated proguard config
Browse files Browse the repository at this point in the history
  • Loading branch information
lins05 committed Mar 24, 2014
1 parent d68230e commit 4c6b4b8
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions proguard-project.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,52 @@
# public *;
#}

-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-verbose
-dontoptimize
-dontpreverify

-keepattributes *Annotation*
-keep public class com.google.vending.licensing.ILicensingService
-keep public class com.android.vending.licensing.ILicensingService

# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
-keepclasseswithmembernames class * {
native <methods>;
}

# keep setters in Views so that animations can still work.
# see http://proguard.sourceforge.net/manual/examples.html#beans
-keepclassmembers public class * extends android.view.View {
void set*(***);
*** get*();
}

# We want to keep methods in Activity that could be used in the XML attribute onClick
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}

# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
-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 <fields>;
}

# The support library contains references to newer platform versions.
# Don't warn about those in case this app is linking against an older
# platform version. We know about them, and they are safe.
-dontwarn android.support.**

-ignorewarnings
-dontoptimize
-dontobfuscate
Expand Down Expand Up @@ -60,4 +106,6 @@
}

-keep class com.seafile.seadroid2.**
-keepclassmembers class com.seafile.seadroid2.** { *; }
-keepclassmembers class com.seafile.seadroid2.** { public <init>(...); }
-keepclassmembers class * extends com.actionbarsherlock.ActionBarSherlock { public <init>(...); }

0 comments on commit 4c6b4b8

Please sign in to comment.