|
1 | 1 | # Add project specific ProGuard rules here. |
2 | 2 | # By default, the flags in this file are appended to flags specified |
3 | | -# in /home/tereha/Android/sdk/tools/proguard/proguard-android.txt |
| 3 | + |
4 | 4 | # You can edit the include path and order by changing the proguardFiles |
5 | 5 | # directive in build.gradle. |
6 | 6 | # |
7 | 7 | # For more details, see |
8 | | -# http://developer.android.com/guide/developing/tools/proguard.html |
9 | | - |
10 | | -# Add any project specific keep options here: |
| 8 | +# http://developer.android.com/guide/developing/tools/proguard.html |
11 | 9 |
|
12 | 10 | # If your project uses WebView with JS, uncomment the following |
13 | 11 | # and specify the fully qualified class name to the JavaScript interface |
|
20 | 18 | #-verbose |
21 | 19 | # |
22 | 20 |
|
| 21 | +##---------------Begin: proguard configuration for Gson ---------- |
| 22 | +# Gson uses generic type information stored in a class file when working with fields. Proguard |
| 23 | +# removes such information by default, so configure it to keep all of it. |
| 24 | +-keepattributes EnclosingMethod |
| 25 | +-keepattributes InnerClasses |
23 | 26 | -keepattributes Signature |
| 27 | +-keepattributes Exceptions |
24 | 28 |
|
25 | 29 | # For using GSON @Expose annotation |
26 | 30 | -keepattributes *Annotation* |
27 | 31 |
|
28 | | -# Gson specific classes |
29 | | --keep class sun.misc.Unsafe { *; } |
30 | | -#-keep class com.google.gson.stream.** { *; } |
31 | | - |
32 | | -# Application classes that will be serialized/deserialized over Gson |
33 | | --keep class com.quickblox.core.account.model.** { *; } |
34 | | - |
35 | | --keep class com.quickblox.auth.parsers.** { *; } |
36 | | --keep class com.quickblox.auth.model.** { *; } |
37 | | --keep class com.quickblox.core.parser.** { *; } |
38 | | --keep class com.quickblox.core.model.** { *; } |
39 | | --keep class com.quickblox.core.server.** { *; } |
40 | | --keep class com.quickblox.core.rest.** { *; } |
41 | | --keep class com.quickblox.core.error.** { *; } |
42 | | --keep class com.quickblox.core.Query { *; } |
| 32 | +#quickblox sdk |
| 33 | +-keep class com.quickblox.** { *; } |
43 | 34 |
|
44 | | --keep class com.quickblox.users.parsers.** { *; } |
45 | | --keep class com.quickblox.users.model.** { *; } |
46 | | - |
47 | | --keep class com.quickblox.chat.parser.** { *; } |
48 | | --keep class com.quickblox.chat.model.** { *; } |
49 | | - |
50 | | --keep class com.quickblox.messages.parsers.** { *; } |
51 | | --keep class com.quickblox.messages.model.** { *; } |
| 35 | +#smack xmpp library |
| 36 | +-keep class org.jxmpp.** { *; } |
| 37 | +-keep class org.jivesoftware.** { *; } |
| 38 | +-dontwarn org.jivesoftware.** |
52 | 39 |
|
53 | | --keep class com.quickblox.content.parsers.** { *; } |
54 | | --keep class com.quickblox.content.model.** { *; } |
| 40 | +#webrtc |
| 41 | +-keep class org.webrtc.** { *; } |
55 | 42 |
|
56 | | --keep class org.jivesoftware.** { *; } |
| 43 | +#google gms |
| 44 | +-keep class com.google.android.gms.** { *; } |
57 | 45 |
|
58 | | --dontwarn org.jivesoftware.smackx.** |
| 46 | +#json |
| 47 | +-keep class org.json.** { *; } |
0 commit comments