OLD | NEW |
1 # Keep line number information, useful for stack traces. | 1 # Keep line number information, useful for stack traces. |
2 -keepattributes SourceFile,LineNumberTable | 2 -keepattributes SourceFile,LineNumberTable |
3 | 3 |
4 # Keep the annotations. | 4 # Keep the annotations. |
5 -keep @interface *** | 5 -keep @interface *** |
6 | 6 |
7 # Disable obfuscation for the following two packages. | 7 # Disable obfuscation for the following two packages. |
8 -keepnames class com.google.android.apps.chrome.**,org.chromium.** { | 8 -keepnames class com.google.android.apps.chrome.**,org.chromium.** { |
9 *; | 9 *; |
10 } | 10 } |
11 | 11 |
12 # Keep all the primitive and String constants for for the following two packages
. | |
13 -keepclassmembers class com.google.android.apps.chrome.**,org.chromium.** { | |
14 !private static final % *; | |
15 !private static final java.lang.String *; | |
16 } | |
17 | |
18 # Keep code annotated with the following annotations. | 12 # Keep code annotated with the following annotations. |
19 -keep class com.google.android.apps.chrome.**,org.chromium.** { | 13 -keep class com.google.android.apps.chrome.**,org.chromium.** { |
20 @**.AccessedByNative <fields>; | 14 @**.AccessedByNative <fields>; |
21 @**.CalledByNative <methods>; | 15 @**.CalledByNative <methods>; |
22 @**.CalledByNativeUnchecked <methods>; | 16 @**.CalledByNativeUnchecked <methods>; |
23 @**.JavascriptInterface <methods>; | 17 @**.JavascriptInterface <methods>; |
24 @**.NativeCall <methods>; | 18 @**.NativeCall <methods>; |
25 @**.UsedByReflection <methods>; | 19 @**.UsedByReflection <methods>; |
26 @**.VisibleForTesting *; | 20 @**.VisibleForTesting *; |
27 native <methods>; | 21 native <methods>; |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 # Needed to run ChromeTest.apk | 161 # Needed to run ChromeTest.apk |
168 -keepnames class com.google.android.gms.common.GoogleApiAvailability { | 162 -keepnames class com.google.android.gms.common.GoogleApiAvailability { |
169 *; | 163 *; |
170 } | 164 } |
171 | 165 |
172 #-keep public class android.net.http.SslCertificate | 166 #-keep public class android.net.http.SslCertificate |
173 #-keep public class android.webkit.WebVie | 167 #-keep public class android.webkit.WebVie |
174 | 168 |
175 #-dontwarn android.webkit.WebView | 169 #-dontwarn android.webkit.WebView |
176 -dontwarn android.net.http.SslCertificate | 170 -dontwarn android.net.http.SslCertificate |
OLD | NEW |