aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2018-05-07 18:42:11 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-05-07 18:43:52 -0700
commita590dd10f0a3cdb1c42a6e8d2735cde37b5594bc (patch)
tree536272b61ab51a6fb225389346ca366725b3eeb2 /tools
parentee3cc87ca8382c9eda37012f7fc470326aad1521 (diff)
Allow conditional keep rules in proguard_whitelister.
PiperOrigin-RevId: 195757274
Diffstat (limited to 'tools')
-rw-r--r--tools/jdk/proguard_whitelister.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/jdk/proguard_whitelister.py b/tools/jdk/proguard_whitelister.py
index 112dbee870..4ccc4b93fd 100644
--- a/tools/jdk/proguard_whitelister.py
+++ b/tools/jdk/proguard_whitelister.py
@@ -37,7 +37,8 @@ class ProguardConfigValidator(object):
"""Validates a proguard config."""
# Must be a tuple for str.startswith()
- _VALID_ARGS = ('keep', 'assumenosideeffects', 'adaptresourcefilecontents')
+ _VALID_ARGS = ('keep', 'assumenosideeffects', 'adaptresourcefilecontents',
+ 'if')
def __init__(self, config_path, outconfig_path):
self._config_path = config_path