proguard-rules.txt 2.38 KB
Newer Older
1 2 3
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
Ernir Erlingsson's avatar
Ernir Erlingsson committed
4
-dontobfuscate
5
-verbose
Ernir Erlingsson's avatar
Ernir Erlingsson committed
6
-useuniqueclassmembernames
7
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
Ernir Erlingsson's avatar
Ernir Erlingsson committed
8 9 10
# For comfortability in case we do obfuscate
# -renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable,*Annotation*,Signature, InnerClasses, EnclosingMethod
11 12 13 14 15 16 17 18 19

-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class com.android.vending.licensing.ILicensingService
-keepclasseswithmembers class * { native <methods>; }
-keepclasseswithmembers class * {  
20
	public <init> (android.content.Context, android.util.AttributeSet); 
21 22
}
-keepclasseswithmembers class * { 
23
	public <init> (android.content.Context, android.util.AttributeSet, int); 
24 25 26 27 28
}
-keepclassmembers class * implements android.os.Parcelable { static android.os.Parcelable$Creator *; }
-keepclassmembers class **.R$* { public static <fields>; }
-keepclasseswithmembernames class * { native <methods>; }
-keepclassmembers enum * {
29 30
	public static **[] values();
	public static ** valueOf(java.lang.String);
31 32 33 34 35 36 37 38 39 40
}
-keepclassmembers class * extends android.app.Activity { 
	public void *(android.view.View); 
}
-keepclassmembers class * { 
	@com.google.inject.Inject <init>(...);
	@com.google.inject.Inject <fields>; 
}
# Just in case Roboguice events are used
-keepclassmembers class * {
41
	void *(**On*Event);
42 43
}

Ernir Erlingsson's avatar
Ernir Erlingsson committed
44
-keep class org.h2.** { *; }
45 46 47 48
-keep class org.briarproject.** { *; }
-keep class com.google.inject.** { *; }
-keep class javax.inject.** { *; }
-keep class javax.annotation.** { *; }
Ernir Erlingsson's avatar
Ernir Erlingsson committed
49
-keep class roboguice.** { *; }
50 51
-keep class dagger.** { *; }
-keep class com.google.** { *; }
Ernir Erlingsson's avatar
Ernir Erlingsson committed
52

Ernir Erlingsson's avatar
Ernir Erlingsson committed
53 54 55 56 57 58
-dontwarn org.h2.**
-dontnote org.h2.**
-dontwarn net.sf.cglib.**
-dontwarn org.briarproject.plugins.tcp.**
-dontwarn roboguice.**
-dontwarn net.sourceforge.jsocks.**
59 60 61
-dontnote android.support.**
-dontnote dagger.**
-dontwarn dagger.**
62 63 64 65 66 67 68 69 70 71 72
-dontwarn com.google.common.**


# RSS libraries
-keep class com.rometools.rome.feed.synd.impl.** { *;}
-keep class com.rometools.rome.io.impl.** { *;}
-dontwarn javax.xml.stream.**
-dontwarn org.jaxen.**
-dontwarn java.nio.**
-dontwarn org.codehaus.mojo.animal_sniffer.**
-dontwarn org.slf4j.impl.**