forked from DanielWorld/HttpLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproguard-rules.pro
More file actions
87 lines (76 loc) · 3.57 KB
/
proguard-rules.pro
File metadata and controls
87 lines (76 loc) · 3.57 KB
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
#http://proguard.sourceforge.net/manual/examples.html
#http://proguard.sourceforge.net/manual/usage.html
-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,*Annotation*,EnclosingMethod
-keepclasseswithmembers class * {
native <methods>;
}
-keepclasseswithmembers class com.danielpark.httpconnection.AsyncHttpConnection {
public final static synchronized com.danielpark.httpconnection.AsyncHttpConnection getInstance(android.content.Context);
public void start(com.danielpark.httpconnection.request.HttpRequest, com.danielpark.httpconnection.handler.JsonHttpResponseHandler, okhttp3.Interceptor);
public void start(com.danielpark.httpconnection.request.HttpRequest, com.danielpark.httpconnection.handler.AsyncHttpResponseHandler, okhttp3.Interceptor);
}
-keepclasseswithmembers class com.danielpark.httpconnection.SyncHttpConnection {
public final static synchronized com.danielpark.httpconnection.SyncHttpConnection getInstance(android.content.Context);
public void start(com.danielpark.httpconnection.request.HttpRequest, com.danielpark.httpconnection.handler.JsonHttpResponseHandler, okhttp3.Interceptor);
public void start(com.danielpark.httpconnection.request.HttpRequest, com.danielpark.httpconnection.handler.AsyncHttpResponseHandler, okhttp3.Interceptor);
}
-keepclasseswithmembers class com.danielpark.httpconnection.HttpConnectionTask {
public <methods>;
}
-keepclasseswithmembers class com.danielpark.httpconnection.SyncHttpConnection {
public <methods>;
}
-keepclasseswithmembers class com.danielpark.httpconnection.request.HttpRequest {
public <methods>;
}
-keepclasseswithmembers class com.danielpark.httpconnection.type.RequestType {
public <methods>;
}
-keepclasseswithmembers class com.danielpark.httpconnection.handler.JsonHttpResponseHandler {
public <methods>;
}
-keepclasseswithmembers class com.danielpark.httpconnection.handler.AsyncHttpResponseHandler {
public <methods>;
}
-keepclasseswithmembers interface com.danielpark.httpconnection.listener.ResponseHandlerInterface {
<methods>;
}
-keepclasseswithmembers class com.danielpark.httpconnection.type.ContentType {
public <methods>;
}
-keepclasseswithmembers interface com.danielpark.httpconnection.network.HttpStatus {
public static final int *;
}
# enum Method in HttpRequest class
-keepclasseswithmembers class com.danielpark.httpconnection.request.HttpRequest$Method {
*;
}
-keepclasseswithmembers class com.danielpark.httpconnection.type.RequestType$Type {
*;
}
-keepclasseswithmembers class com.danielpark.httpconnection.HttpConnection$SyncType {
*;
}
-dontnote android.net.http.**
-dontnote org.apache.http.conn.scheme.**
-dontnote org.apache.http.conn.**
-dontnote org.apache.http.params.**
# Protect members of enum field in RequestType class
#-keep public enum com.danielpark.httpconnection.type.RequestType$** {
# public *;
#}
#-keep public enum com.danielpark.httpconnection.request.HttpRequest$** {
# public *;
#}
##---------------Begin: proguard configuration for Gson ----------
# Gson uses generic type information stored in a class file when working with fields. Proguard
# removes such information by default, so configure it to keep all of it.
-keepattributes Signature
# For using GSON @Expose annotation
-keepattributes *Annotation*
# Gson specific classes
-keep class sun.misc.Unsafe { *; }
#-keep class com.google.gson.stream.** { *; }
# Application classes that will be serialized/deserialized over Gson
-keep class com.google.gson.examples.android.model.** { *; }
##---------------End: proguard configuration for Gson ----------