Increased accuracy of aapt2 "keep" rules

1 · Jake Wharton · Aug. 7, 2018, midnight
The aapt2 tool packages your Android application resources into the format used at runtime. It also generates “keep” rules for ProGuard or R8 so that the types referenced inside of your resources do not get removed. Views referenced only in layout XML, action providers referenced only in menu XML, and broadcast receivers referenced only in the manifest XML are some examples of types that would otherwise be removed from the final APK were it not for these rules. Prior to version 3.3.0-alpha05 of ...