commit | 17495d90b34de7210672c7715b0aa5d734dbc094 | [log] [tgz] |
---|---|---|
author | Ian Zerny <zerny@google.com> | Wed Jul 08 20:07:56 2020 +0200 |
committer | Ian Zerny <zerny@google.com> | Wed Jul 08 20:07:56 2020 +0200 |
tree | e3ae5db81881cb5e62715b77e68db3d2e8ac630e | |
parent | 0b55771dbf70c044a78d3f9f81947d091cbeb438 [diff] |
Always consider the default keep all rules as "used". Change-Id: I7865d64d24cd8a1c42830f994ecc43b0d6729a83
diff --git a/src/main/java/com/android/tools/r8/shaking/ProguardKeepRule.java b/src/main/java/com/android/tools/r8/shaking/ProguardKeepRule.java index 305c108..326a95e 100644 --- a/src/main/java/com/android/tools/r8/shaking/ProguardKeepRule.java +++ b/src/main/java/com/android/tools/r8/shaking/ProguardKeepRule.java
@@ -149,7 +149,10 @@ builder.matchAllSpecification(); builder.setType(ProguardKeepRuleType.KEEP); modifiers.accept(builder.getModifiersBuilder()); - return builder.build(); + ProguardKeepRule rule = builder.build(); + // Consider the default keep all rule as always matched. + rule.markAsUsed(); + return rule; } @Override