-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject_proguard-rules.pro
75 lines (62 loc) · 2.32 KB
/
project_proguard-rules.pro
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
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#--------------------------------
# Android Support - v4
#--------------------------------
#https://stackoverflow.com/questions/18978706/obfuscate-android-support-v7-widget-gridlayout-issue
-dontwarn android.support.v4.**
-keep class android.support.v4.app.** { *; }
-keep interface android.support.v4.app.** { *; }
-keep class android.support.v4.** { *; }
#--------------------------------
# Android Support - v7
#--------------------------------
-dontwarn android.support.v7.**
-keep class android.support.v7.internal.** { *; }
-keep interface android.support.v7.internal.** { *; }
-keep class android.support.v7.** { *; }
#--------------------------------
# Android Support Design
#--------------------------------
#@link http://stackoverflow.com/a/31028536
-dontwarn android.support.design.**
-keep class android.support.design.** { *; }
-keep interface android.support.design.** { *; }
-keep public class android.support.design.R$* { *; }
#--------------------------------
# Android proguard internet classes duplicates bug
# @link https://stackoverflow.com/questions/33047806/proguard-duplicate-definition-of-library-class
#--------------------------------
-dontnote android.net.http.*
-dontnote org.apache.commons.codec.**
-dontnote org.apache.http.**
#--------------------------------
# OkHttp
#--------------------------------
-dontwarn okhttp3.**
-dontwarn okio.**
-dontwarn javax.annotation.**
-dontwarn org.conscrypt.**
-dontwarn com.squareup.okhttp3.**
-keep class com.squareup.okhttp3.** { *; }
-keep interface com.squareup.okhttp3.** { *; }
# A resource is loaded with a relative path so the package of this class must be preserved.
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
#--------------------------------
# Retrofit
#--------------------------------
-dontwarn okio.**
-dontwarn retrofit2.Platform$Java8
-dontwarn org.codehaus.**
-dontwarn java.nio.**
-dontwarn java.lang.invoke.**
-dontwarn rx.**
#--------------------------------
# DATA MODULE data classes
#--------------------------------
#-keep class livetyping.com.confa_v30.data.models.** { *; }
#--------------------------------
# Error with proguard
# @link: https://github.com/google/dagger/issues/645
#--------------------------------
-dontwarn com.google.errorprone.annotations.*