Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11834] Android: Research pre-dexing our platform JARs to improve build speed.

GitHub Issuen/a
TypeStory
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid, Tooling
Labelsandroidbuild, ay-verified, cb-verified, core
ReporterIngo Muschenetz
AssigneeChris Barber
Created2012-11-20T19:45:28.000+0000
Updated2016-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).

Comments

  1. Chris Barber 2016-08-25

    [~cwilliams] Is this possible? I don't know how this would affect multi-dex support. /cc [~msamah]

JSON Source