sherlock actionbar + proguard

This commit is contained in:
Sergey Solovyev 2012-10-10 22:28:18 +04:00
parent 704b5b6313
commit 6517293359

View File

@ -1,105 +1,117 @@
-target 1.6 -target 1.6
-dontusemixedcaseclassnames -dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses -dontskipnonpubliclibraryclasses
-dontpreverify -dontpreverify
-repackageclasses '' -repackageclasses ''
-allowaccessmodification -allowaccessmodification
-optimizations !code/simplification/arithmetic -optimizations !code/simplification/arithmetic
-keepattributes *Annotation* -keepattributes *Annotation*
-keep public class * extends android.app.Activity -keep public class * extends android.app.Activity
-keep public class * extends android.app.Application -keep public class * extends android.app.Application
-keep public class * extends android.app.Service -keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver -keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider -keep public class * extends android.content.ContentProvider
-keep public class * extends android.view.View { -keep public class * extends android.view.View {
public <init>(android.content.Context); public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet); public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int); public <init>(android.content.Context, android.util.AttributeSet, int);
public void set*(...); public void set*(...);
} }
-keepclasseswithmembers class * { -keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet); public <init>(android.content.Context, android.util.AttributeSet);
} }
-keepclasseswithmembers class * { -keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int); public <init>(android.content.Context, android.util.AttributeSet, int);
} }
-keepclassmembers class * extends android.content.Context { -keepclassmembers class * extends android.content.Context {
public void *(android.view.View); public void *(android.view.View);
public void *(android.view.MenuItem); public void *(android.view.MenuItem);
} }
-keepclassmembers class * implements android.os.Parcelable { -keepclassmembers class * implements android.os.Parcelable {
static android.os.Parcelable$Creator CREATOR; static android.os.Parcelable$Creator CREATOR;
} }
-keepclassmembers class **.R$* { -keepclassmembers class **.R$* {
public static <fields>; public static <fields>;
} }
-keepclassmembers enum * { -keepclassmembers enum * {
public static **[] values(); public static **[] values();
public static ** valueOf(java.lang.String); public static ** valueOf(java.lang.String);
} }
-keep @org.simpleframework.xml.Root public class * { -keep @org.simpleframework.xml.Root public class * {
*; *;
} }
-dontwarn javax.xml.stream.** -dontwarn javax.xml.stream.**
-dontwarn com.bea.xml.stream.** -dontwarn com.bea.xml.stream.**
-dontwarn sun.misc.Unsafe -dontwarn sun.misc.Unsafe
-dontwarn android.annotation.TargetApi -dontwarn android.annotation.TargetApi
-dontwarn org.solovyev.common.math.visualisation.** -dontwarn org.solovyev.common.math.visualisation.**
-dontwarn org.solovyev.common.math.graph.** -dontwarn org.solovyev.common.math.graph.**
-dontwarn org.solovyev.common.math.algorithms.** -dontwarn org.solovyev.common.math.algorithms.**
-dontwarn org.solovyev.common.drawing.** -dontwarn org.solovyev.common.drawing.**
-dontwarn org.joda.** -dontwarn org.joda.**
-dontwarn jscl.mathml.** -dontwarn jscl.mathml.**
-dontwarn com.google.common.collect.MinMaxPriorityQueue -dontwarn com.google.common.collect.MinMaxPriorityQueue
-keep class org.simpleframework.xml.** { *; } -keep class org.simpleframework.xml.** { *; }
-keep class com.actionbarsherlock.** { *; } -keep class * implements org.solovyev.android.calculator.model.MathPersistenceEntity
-keep class * implements org.solovyev.android.calculator.model.MathPersistenceEntity
#
# #*********************************************************************
#********************************************************************* #
# # SHERLOCK
# ACRA #
# #*********************************************************************
#********************************************************************* #
#
-keep class android.support.v4.app.** { *; }
# we need line numbers in our stack traces otherwise they are pretty useless -keep interface android.support.v4.app.** { *; }
-renamesourcefileattribute SourceFile -keep class com.actionbarsherlock.** { *; }
-keepattributes SourceFile,LineNumberTable -keep interface com.actionbarsherlock.** { *; }
# ACRA needs "annotations" so add this... #
-keepattributes *Annotation* #*********************************************************************
#
# keep this class so that logging will show 'ACRA' and not a obfuscated name like 'a'. # ACRA
# Note: if you are removing log messages elsewhere in this file then this isn't necessary #
-keep class org.acra.ACRA { #*********************************************************************
*; #
}
# we need line numbers in our stack traces otherwise they are pretty useless
# keep this around for some enums that ACRA needs -renamesourcefileattribute SourceFile
-keep class org.acra.ReportingInteractionMode { -keepattributes SourceFile,LineNumberTable
*;
} # ACRA needs "annotations" so add this...
-keepattributes *Annotation*
# keep this otherwise it is removed by ProGuard
-keep public class org.acra.ErrorReporter # keep this class so that logging will show 'ACRA' and not a obfuscated name like 'a'.
{ # Note: if you are removing log messages elsewhere in this file then this isn't necessary
public void addCustomData(java.lang.String,java.lang.String); -keep class org.acra.ACRA {
} *;
}
# keep this otherwise it is removed by ProGuard
-keep public class org.acra.ErrorReporter # keep this around for some enums that ACRA needs
{ -keep class org.acra.ReportingInteractionMode {
public org.acra.ErrorReporter$ReportsSenderWorker handleSilentException(java.lang.Throwable); *;
} }
# keep this otherwise it is removed by ProGuard
-keep public class org.acra.ErrorReporter
{
public void addCustomData(java.lang.String,java.lang.String);
}
# keep this otherwise it is removed by ProGuard
-keep public class org.acra.ErrorReporter
{
public org.acra.ErrorReporter$ReportsSenderWorker handleSilentException(java.lang.Throwable);
}