summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRyan Mitchell <rtmitchell@google.com>2018-09-25 15:20:59 -0700
committerRyan Mitchell <rtmitchell@google.com>2018-09-25 15:20:59 -0700
commit7e5236dc563595f1dca7ed3e6cb87b6ce995c402 (patch)
treea4a5a3779d4607a46d861ac290afa0fecdca40e9 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentd5180a5ec2ca69d48c468be8b2bb35ded12c50f2 (diff)
Restore Proguard behavior and add minimal flag
We previously changed AAPT2 to correctly only generate keep rules for the constructors required to inflate the different views. This cause projects that did not have keep rules for the other constructors that were accessed through reflection to have runtime crashes. This change adds a flag to the link stage (--proguard-minimal-keep-rules) that allows AAPT2 to only keep the constructors required for layout inflation. If the flag is not present, then AAPT2 will generate less specific keep rules than keep all constructors. Bug: 116201243 Test: aapt2_tests Change-Id: I8bb5cdf8446518ab153ea988e1243ca9494258c7
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions