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

-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 * {  
19
	public <init> (android.content.Context, android.util.AttributeSet); 
20 21
}
-keepclasseswithmembers class * { 
22
	public <init> (android.content.Context, android.util.AttributeSet, int); 
23 24 25 26 27
}
-keepclassmembers class * implements android.os.Parcelable { static android.os.Parcelable$Creator *; }
-keepclassmembers class **.R$* { public static <fields>; }
-keepclasseswithmembernames class * { native <methods>; }
-keepclassmembers enum * {
28 29
	public static **[] values();
	public static ** valueOf(java.lang.String);
30 31 32 33 34 35 36 37 38 39
}
-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 * {
40
	void *(**On*Event);
41 42
}

Ernir Erlingsson's avatar
Ernir Erlingsson committed
43
-keep class org.h2.** { *; }
44 45 46 47
-keep class org.briarproject.** { *; }
-keep class com.google.inject.** { *; }
-keep class javax.inject.** { *; }
-keep class javax.annotation.** { *; }
Ernir Erlingsson's avatar
Ernir Erlingsson committed
48
-keep class roboguice.** { *; }
49 50
-keep class dagger.** { *; }
-keep class com.google.** { *; }
51 52 53
-keep class javax.** { *; }
-keep class org.eclipse.** { *; }
-keep class com.squareup.** { *; }
Ernir Erlingsson's avatar
Ernir Erlingsson committed
54 55 56 57 58 59 60

-dontwarn org.h2.**
-dontnote org.h2.**
-dontwarn net.sf.cglib.**
-dontwarn org.briarproject.plugins.tcp.**
-dontwarn roboguice.**
-dontwarn net.sourceforge.jsocks.**
61 62 63 64
-dontnote android.support.**
-dontnote dagger.**
-dontwarn dagger.**
-dontwarn com.google.common.**