982679c45ee20f39c5da072ff6a80519ee262ef4 |
|
01-May-2018 |
Filip Pavlis <pavlis@google.com> |
Jetifier ProGuard improvements 1) Adds support for cases when a single ProGuard rule needs to be replaced by multiple rules because mappings are not always 1:1. One of the examples is: android/support/v4/media/** -> androidx/media/**, android/support/v4/** 2) Adds more automation into ProGuard mapper to be able to automatically solve some of the simple rules that contain wildcards. The automated solution sucessfully maps around 80% of the wildcard rules. 3) Adds more rules for cases where toolings is just not smart enough. This was tested on 600 ProGuard rules aggregated from wild. Single unit tests also added. Bug: 64833662 Test: Added Change-Id: Ib7d06684e8e83d175e6c8b4471c02f6680913b81
/frameworks/support/jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/transform/proguard/ProGuardClassSpecParser.kt
|