OSDN Git Service

Running jarjar on Java resources.
authorYing Wang <wangying@google.com>
Wed, 14 Jan 2015 22:23:56 +0000 (14:23 -0800)
committerYing Wang <wangying@google.com>
Wed, 21 Jan 2015 19:57:52 +0000 (11:57 -0800)
commit07acdbfd32f8164c05b0035c80fe16adb5c03280
treef489a281347fec0a682860fbeeac54909fb090a1
parent17967eb72f0eb7f495800d5065b64db4a0174362
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.

(cherry-picked from commit 140274707e31c9585aa28b0de2f1418c64ecd272)

Bug: 18837479
Change-Id: I15ecf282bfb65fd53dd03fbd03dd4c71927c186a
core/definitions.mk
core/host_dalvik_java_library.mk
core/java_library.mk
core/package_internal.mk