History log of /frameworks/support/jetifier/jetifier/processor/src/test/kotlin/com/android/tools/build/jetifier/processor/transform/proguard/ProGuardTester.kt
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5b12e59efaab28afee6ffc712a7c8d6ecbae8144 23-May-2018 Filip Pavlis <pavlis@google.com> Improvements in Jetifier.

Cleaned up standalone tool API
- We no longer have option for providing multiple files or specifing
output directory. So the tool now supports only file to file conversion.
I found the origal approach to be a bit ambiguous and also we never
actually used it it was just part of the initialdesign.
- DependencyVersionsMap is now part of the config file instead of being
in the code. This allows more flexibility when providing custom config file
and enables last minute fixes.

Bug: 64833662
Test: Updated
Change-Id: I475e74a2f6c5e61c3b3dec5d1bcc9c41ff2fee9b
/frameworks/support/jetifier/jetifier/processor/src/test/kotlin/com/android/tools/build/jetifier/processor/transform/proguard/ProGuardTester.kt
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/test/kotlin/com/android/tools/build/jetifier/processor/transform/proguard/ProGuardTester.kt
d101a9abcc701ca9a05b4870ab4703bd7ea6b0e9 19-Apr-2018 Filip Pavlis <pavlis@google.com> Design rules fixes.

+ Added fallback rule when dejetifying new media classes.
+ androidx.car to ignore for dejetification
+ Replaced set with list for rules - because order matters.
+ Set 2.0.0 versions for arch components.

Bug: b/64833662
Test: N/A

Change-Id: If87ae7037bd08e77c4e5991a94b98f811e884c82
/frameworks/support/jetifier/jetifier/processor/src/test/kotlin/com/android/tools/build/jetifier/processor/transform/proguard/ProGuardTester.kt
ba381a314edcd57963ed1ac5910595e04faf29cc 28-Mar-2018 Filip Pavlis <pavlis@google.com> Refactor Jetifier packages to com.android.tools

Bug: b/64833662
Test: it builds!

Change-Id: I27bc0d2b0de17ba0d22e7588dc0742a041f17f31
/frameworks/support/jetifier/jetifier/processor/src/test/kotlin/com/android/tools/build/jetifier/processor/transform/proguard/ProGuardTester.kt