forked from tomahawk-player/tomahawk-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
proguard-android.txt
213 lines (194 loc) · 6.09 KB
/
proguard-android.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*,!code/allocation/variable
-optimizationpasses 5
-allowaccessmodification
-dontpreverify
-dontobfuscate
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-verbose
-keepattributes Signature,*Annotation*,EnclosingMethod
-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 *;
}
-keep class * implements java.io.Serializable {
*;
}
-keepclassmembers class **.R$* {
public static <fields>;
}
-keep class se.emilsjolander.stickylistheaders.** {
*;
}
###############################
#Spotify Android SDK specifics#
###############################
-keep class com.spotify.** { *; }
######################
#LibVLC specifics#
######################
-keep class org.videolan.libvlc.** { *; }
################################
#Javascript Interface specifics#
################################
-keepclassmembers class * {
@android.webkit.JavascriptInterface <methods>;
}
###########################
#Support library specifics#
###########################
-keep class android.support.v7.** {
*;
}
-keep interface android.support.v7.** {
*;
}
-keep class android.support.v8.renderscript.** {
*;
}
-dontwarn android.support.v4.**
-dontwarn android.support.v7.**
-dontwarn android.support.v8.**
###################
#Jackson specifics#
###################
-keepnames class org.codehaus.jackson.** {
*;
}
-keepclassmembers public class * {
public <init>(...);
}
-keep class org.tomahawk.libtomahawk.infosystem.deserializer.** { *; }
-dontwarn org.joda.time.**
-dontwarn org.w3c.dom.bootstrap.**
#################
#Guava specifics#
#################
-dontwarn sun.misc.Unsafe
-dontwarn com.google.common.collect.MinMaxPriorityQueue
-keepclasseswithmembers public class * {
public static void main(java.lang.String[]);
}
###################
#Picasso specifics#
###################
-dontwarn com.squareup.okhttp.**
####################
#Retrofit specifics#
####################
-keep class org.tomahawk.libtomahawk.infosystem.hatchet.Hatchet { *; }
-keep class org.tomahawk.libtomahawk.authentication.HatchetAuth { *; }
-keep class com.google.gson.** { *; }
-keep class com.google.inject.* { *; }
-keep class org.apache.http.** { *; }
-keep class org.apache.james.mime4j.** { *; }
-keep class javax.inject.** { *; }
-keep class retrofit.** { *; }
-keep class rx.** { *; }
-keep class sun.misc.Unsafe { *; }
-keepclasseswithmembers class * {
@retrofit.http.* <methods>;
}
-dontwarn rx.*
-dontwarn retrofit.**
##################
#OkHttp specifics#
##################
-dontwarn okio.**
###############################
#greenrobot EventBus specifics#
###############################
-keepclassmembers class ** {
public void onEvent*(**);
}
##################
#Lucene specifics#
##################
-dontwarn org.apache.regexp.**
-dontwarn org.apache.commons.codec.binary.**
-dontwarn java.lang.management.**
-keep class org.apache.regexp.**
-keep class org.apache.commons.codec.binary.**
-keep class java.lang.management.**
-keep class org.apache.lucene.codecs.Codec
-keep class * extends org.apache.lucene.codecs.Codec
-keep class org.apache.lucene.codecs.PostingsFormat
-keep class * extends org.apache.lucene.codecs.PostingsFormat
-keep class org.apache.lucene.codecs.DocValuesFormat
-keep class * extends org.apache.lucene.codecs.DocValuesFormat
-keep class org.apache.lucene.analysis.tokenattributes.**
-keep class org.apache.lucene.**Attribute
-keep class * implements org.apache.lucene.**Attribute
###################################
#UnifiedMetaDataProvider specifics#
###################################
-dontwarn android.media.IRemoteControlDisplay**
-dontwarn android.media.AudioManager
-keep class org.electricwisdom.** { *; }
-keep interface org.electricwisdom.** { *; }
####################
#Signpost specifics#
####################
-dontwarn oauth.signpost.**
################
#ACRA specifics#
################
-dontwarn org.apache.http.**
-dontwarn org.acra.ErrorReporter
# Restore some Source file names and restore approximate line numbers in the stack traces,
# otherwise the stack traces are pretty useless
-keepattributes SourceFile,LineNumberTable
# 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
-keep class org.acra.ACRA {
*;
}
# keep this around for some enums that ACRA needs
-keep class org.acra.ReportingInteractionMode {
*;
}
-keepnames class org.acra.sender.HttpSender$** {
*;
}
-keepnames class org.acra.ReportField {
*;
}
# keep this otherwise it is removed by ProGuard
-keep public class org.acra.ErrorReporter {
public void addCustomData(java.lang.String,java.lang.String);
public void putCustomData(java.lang.String,java.lang.String);
public void removeCustomData(java.lang.String);
}
# keep this otherwise it is removed by ProGuard
-keep public class org.acra.ErrorReporter {
public void handleSilentException(java.lang.Throwable);
}
##################
#Deezer specifics#
##################
-keep class com.deezer.** { *; }
#####################
#UserVoice specifics#
#####################
-dontwarn android.net.http.**
-dontwarn com.google.android.gms.**