OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # This file is for proguard flags which will be applied to apks that are being | 5 # This file is for proguard flags which will be applied to apks that are being |
6 # built to be instrumentation tested. The flags in this file should only affect | 6 # built to be instrumentation tested. The flags in this file should only affect |
7 # how the instrumentation tests interact with the .apk. Do not put any flags in | 7 # how the instrumentation tests interact with the .apk. Do not put any flags in |
8 # this file which might affect the correctness of the .apk. | 8 # this file which might affect the correctness of the .apk. |
9 | 9 |
10 # This line prevents optmization from being applied to either packages. We rely | 10 # This line prevents optmization from being applied to either packages. We rely |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 # Needed for chrome_sync_shell_test_apk. Note - these do no affect chrome_apk's | 96 # Needed for chrome_sync_shell_test_apk. Note - these do no affect chrome_apk's |
97 # size. | 97 # size. |
98 -keep class org.chromium.sync.protocol.* { *; } | 98 -keep class org.chromium.sync.protocol.* { *; } |
99 | 99 |
100 # These resources are referenced in tests, but not in the real application. | 100 # These resources are referenced in tests, but not in the real application. |
101 -keepclassmembers class org.chromium.chrome.R$id { | 101 -keepclassmembers class org.chromium.chrome.R$id { |
102 int webapp_splash_space; | 102 int webapp_splash_space; |
103 int mr_chooser_list; | 103 int mr_chooser_list; |
104 int find_toolbar; | 104 int find_toolbar; |
105 } | 105 } |
| 106 |
| 107 # This is to prevent renaming two methods in two different interfaces to the |
| 108 # same name. The testing .apk has a few classes which implement two interfaces |
| 109 # that are never implemented together in the real .apk, and thus would create a |
| 110 # conflict. We don't expect the absence of this to cause any issues in the real |
| 111 # .apk, since the same classes are still being obfuscated, and the ProGuarded |
| 112 # .apk is not then being fed into another run. |
| 113 -useuniqueclassmembernames |
OLD | NEW |