Chromium Code Reviews| 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 } |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 @**.NativeCall <methods>; | 24 @**.NativeCall <methods>; |
| 25 @**.UsedByReflection <methods>; | 25 @**.UsedByReflection <methods>; |
| 26 @**.VisibleForTesting *; | 26 @**.VisibleForTesting *; |
| 27 native <methods>; | 27 native <methods>; |
| 28 } | 28 } |
| 29 | 29 |
| 30 # Keep all runtime visible annotations | 30 # Keep all runtime visible annotations |
| 31 -keepattributes RuntimeVisibleAnnotations | 31 -keepattributes RuntimeVisibleAnnotations |
| 32 | 32 |
| 33 # Remove methods annotated with this if their return value is unused | 33 # Remove methods annotated with this if their return value is unused |
| 34 -assumenosideeffects class * { | 34 -assumenosideeffects class com.google.android.apps.chrome.**,org.chromium.** { |
|
Yaron
2015/08/25 16:57:35
Ya, I think just revert this for now
| |
| 35 @org.chromium.base.annotations.RemovableInRelease <methods>; | 35 @org.chromium.base.annotations.RemovableInRelease <methods>; |
| 36 } | 36 } |
| 37 | 37 |
| 38 # TODO(aurimas): figure out why we need to keep these classes. | 38 # TODO(aurimas): figure out why we need to keep these classes. |
| 39 -keep class org.chromium.base.test.** { | 39 -keep class org.chromium.base.test.** { |
| 40 *; | 40 *; |
| 41 } | 41 } |
| 42 | 42 |
| 43 # Keep protobuf code used via reflection | 43 # Keep protobuf code used via reflection |
| 44 # TODO(tonyg): Removing these -keeps results in new notes, but nothing seems to | 44 # TODO(tonyg): Removing these -keeps results in new notes, but nothing seems to |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 122 # that was deprecated in Android M. It is save to suppress this according to b/1 8510449. | 122 # that was deprecated in Android M. It is save to suppress this according to b/1 8510449. |
| 123 -dontwarn com.google.android.gms.common.GooglePlayServicesUtil | 123 -dontwarn com.google.android.gms.common.GooglePlayServicesUtil |
| 124 | 124 |
| 125 # IntentUtils uses reflection to access a method that is hidden until API level 18. | 125 # IntentUtils uses reflection to access a method that is hidden until API level 18. |
| 126 -dontnote org.chromium.chrome.browser.util.IntentUtils | 126 -dontnote org.chromium.chrome.browser.util.IntentUtils |
| 127 | 127 |
| 128 # Needed to compile ChromeTest.apk | 128 # Needed to compile ChromeTest.apk |
| 129 -keep class android.support.customtabs.ICustomTabsCallback** { | 129 -keep class android.support.customtabs.ICustomTabsCallback** { |
| 130 *; | 130 *; |
| 131 } | 131 } |
| OLD | NEW |