commit | a60f2aa119b2ac6d5128683e6a98fd53334327f6 | [log] [tgz] |
---|---|---|
author | Denis Vnukov <vnukov@google.com> | Wed Jun 07 07:49:30 2017 -0700 |
committer | Denis Vnukov <vnukov@google.com> | Wed Jun 07 07:49:30 2017 -0700 |
tree | a86d6e30d2957f0f084dd84ec11a7d3ce86a6222 | |
parent | 949365e30e634388513687130f7103fe5e1d3458 [diff] |
Refactoring resource and class kinds. Changing resource kind to represent resource's content rather than what resource is used for. Currently we only supprt two resource kinds: DEX file and Java class file. Moving what used to be a resource kind into a separate enum ClassKind representing if the class is program, classpath or library class. With this change, resources only represent their content as stream and their kinds, and only are mapped into class kinds based on the API used to introduce them to AndroidApp. Interface Resource and class InternalResource are also merged into one class Resource since after we made getClassDescriptors() part of public API, there is no 'hidden' resource API. NOTE: Resource class is also used internally to represent other file kinds (e.g. proguardMap, etc...), we use `null` kind for such resources. BUG= Change-Id: I97df13f28531d1b3086e2929ffd85fdeb2298e81
The R8 repo contains two tools.
D8 is a dexer that converts java byte code to dex code.
R8 is a java program shrinking and minification tool.