[TIMOB-11834] Android: Research pre-dexing our platform JARs to improve build speed.
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android, Tooling |
Labels | androidbuild, ay-verified, cb-verified, core |
Reporter | Ingo Muschenetz |
Assignee | Chris Barber |
Created | 2012-11-20T19:45:28.000+0000 |
Updated | 2016-08-25T16:03:24.000+0000 |
Description
The DEX tool allows "pre-dexing" of library JARs to help reduce build time.
We should investigate how this can be done and what improvements would be seen.
To "pre-dex" a JAR you run the following:
dx --dex --output=lib-dex.jar lib.jar
The "lib-dex.jar" will contain a "DEX" file containing all the classfiles for that
library JAR. This way when dexing the application dx only needs to merge the
library's DEX file with the other input files (other JARs, classfiles).
[~cwilliams] Is this possible? I don't know how this would affect multi-dex support. /cc [~msamah]