proguard-rules.txt 2.15 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
# For comfortability in case we do obfuscate
# -renamesourcefileattribute SourceFile
10
-keepattributes SourceFile, LineNumberTable, *Annotation*, Signature, InnerClasses, EnclosingMethod
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
-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
}
-keepclassmembers class * extends android.app.Activity { 
	public void *(android.view.View); 
}

Ernir Erlingsson's avatar
Ernir Erlingsson committed
35
-keep class org.h2.** { *; }
36 37
-keep class org.briarproject.** { *; }
-keep class javax.inject.** { *; }
38
-keep class dagger.** { *; }
39
-keep class com.google.zxing.Result
Ernir Erlingsson's avatar
Ernir Erlingsson committed
40

Ernir Erlingsson's avatar
Ernir Erlingsson committed
41 42 43 44
-dontwarn org.h2.**
-dontnote org.h2.**
-dontwarn net.sf.cglib.**
-dontwarn org.briarproject.plugins.tcp.**
45 46
-dontnote org.briarproject.crypto.**
-dontnote org.spongycastle.crypto.parsers.ECIESPublicKeyParser
Ernir Erlingsson's avatar
Ernir Erlingsson committed
47
-dontwarn net.sourceforge.jsocks.**
48 49 50
-dontnote android.support.**
-dontnote dagger.**
-dontwarn dagger.**
51
-dontnote com.google.common.**
52 53 54 55 56
-dontwarn com.google.common.**

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