This is a little tricky only because MOZ_CHILD_PROCESS_NAME is
"lib/libplugin-container.so" on Android, which meant special handling
at multiple places in the tree. This patch reduces the number of such
places.
This builds a new Java JAR containing only org.mozilla.gecko.R. This
new JAR file is included in Fennec, but not included in
geckoview_library. (Usually ant, gradle, or Eclipse arranges to produce
org.mozilla.gecko.R but not include it in the classes.jar output as part
of a library project. This mimics that.)
Changing the GeckoView package to org.mozilla.gecko declares to
consuming applications that they should produce org.mozilla.gecko.R,
replacing what was removed above (but with correct resource IDs).
This is a temporary measure. We have multiple resource directories
that all need to be included into the GeckoView library. This patch
stuffs the resources into a zip file which can be included in the
GeckoView packaging step.
These resources used to be copied into res/, which led to
synchronization issues. This new zip file will now suffer the same
synchronization problems. Android Archive (.aar) files make this
synchronization step explicit, and tools such as gradle do the work to
keep things in sync. We'll move to use a tool like this eventually,
but for now...