Whitelist -assumevalues for android_library
"""Checks for proguard configuration rules that cannot be combined across libs.
The only valid proguard arguments for a library are -keep, -assumenosideeffects,
-and -dontnote and -dontwarn when they are provided with arguments.
+-assumevalues and -dontnote and -dontwarn when they are provided with arguments.
Limiting libraries to using these flags prevents drastic, sweeping effects
(such as obfuscation being disabled) from being inadvertently applied to a
binary through a library dependency.
@@ -37,8 +37,8 @@ class ProguardConfigValidator(object):
"""Validates a proguard config."""
# Must be a tuple for str.startswith()
- _VALID_ARGS = ('keep', 'assumenosideeffects', 'adaptresourcefilecontents',
- 'if')
+ _VALID_ARGS = ('keep', 'assumenosideeffects', 'assumevalues',
+ 'adaptresourcefilecontents', 'if')
def __init__(self, config_path, outconfig_path):
self._config_path = config_path
