Go to file
Ying Wang 140274707e Running jarjar on Java resources.
Before this change, Java resources are added as a separate step
(add-java-resources-to-package) after dex is run, so jarjar isn't run on
the resource files.
With this change, we add Java resources immediately after we call javac,
so jarjar is run on the resource files (the module's own resource, as
well as resources carried by static Java libraries).
When we generate the final apk/jar, we use the jarjar'ed jar as the
inital pacakge file, with class files and empty folders removed.

When jack is enabled, in jack-java-to-dex we add the Java resources to
a temp jar using the PRIVATE_EXTRA_JAR_ARGS, and extrac the files in a
temp dir. Jack will process the resource files and output the result to
PRIVATE_JACK_INTERMEDIATES_DIR. When we package the final apk/jar, we
need to call add-carried-jack-resources to readd the resources.
(TODO: if jack can output all resources to a jar/zip file, we can use
that file as the initial package file as well.)

Bug: 18837479
Change-Id: I15ecf282bfb65fd53dd03fbd03dd4c71927c186a
2015-01-20 11:46:59 -08:00
core Running jarjar on Java resources. 2015-01-20 11:46:59 -08:00
libs/host Remove HAVE_SYMLINKS. 2015-01-12 17:21:01 -08:00
target am d57b7c64: am 5f31338c: Merge "Add ld.mc as a required executable to core_minimal.mk." 2015-01-15 19:06:31 +00:00
tools am 4433ac85: am d1283889: am 48141e05: am 5a97f244: am 529a107f: Add new subtab under Distribute tab. 2015-01-16 20:06:35 +00:00
.gitignore Delete .swp file added by accident. 2014-07-22 17:42:35 -07:00
CleanSpec.mk resolve conflicts w/aaf823d2 2014-12-08 10:53:50 -08:00
buildspec.mk.default Remove WEBCORE_INSTRUMENTATION and ENABLE_SVG 2013-07-25 15:52:17 -07:00
envsetup.sh am 53ed9df8: Merge "Fix incorrect name for x86 platform\'s gdb" 2015-01-05 22:55:43 +00:00