Preserve directory structure in android zip
Preserve directory structure in android zip

Summary:
The Codegen runs on all JavaScript specs, generating C++/Java/Jni, etc. Then, we copy only the Java files into a directory:

https://www.internalfb.com/intern/diffusion/FBS/browsefile/master/xplat/js/react-native-github/packages/react-native-codegen/DEFS.bzl?commit=3945e905d6636c005af77d29b7f45ef7b1efe00e&lines=340-347

And zip that directory up, before [creating an android_library with that zip](https://www.internalfb.com/intern/diffusion/FBS/browsefile/master/xplat/js/react-native-github/packages/react-native-codegen/DEFS.bzl?commit=3945e905d6636c005af77d29b7f45ef7b1efe00e&lines=395-414%2C442-452%2C415-442):

https://www.internalfb.com/intern/diffusion/FBS/browsefile/master/xplat/js/react-native-github/packages/react-native-codegen/DEFS.bzl?commit=3945e905d6636c005af77d29b7f45ef7b1efe00e&lines=365-371

**Problem:** We unnecessarily flatten the directory structure of all our Java files.

This diff moves all the files under the java/ folder of the Codegen output into the zip that is used to create the android_library. This way, we avoid filename collisions between two Pojos belonging to two different components (with different packages), but that have the same name.

Changelog: [Internal]

Differential Revision: D26050260

fbshipit-source-id: f92e916cd640a688997dd75c2707d77cb15de083

arthuralee/react-native,janicduplessis/react-native,pandiaraj44/react-native,facebook/react-native,arthuralee/react-native,javache/react-native,javache/react-native,facebook/react-native,pandiaraj44/react-native,janicduplessis/react-native,pandiaraj44/react-native,facebook/react-native,janicduplessis/react-native,javache/react-native,myntra/react-native,janicduplessis/react-native,myntra/react-native,myntra/react-native,javache/react-native,facebook/react-native,janicduplessis/react-native,pandiaraj44/react-native,myntra/react-native,myntra/react-native,javache/react-native,javache/react-native,pandiaraj44/react-native,myntra/react-native,janicduplessis/react-native,facebook/react-native,facebook/react-native,facebook/react-native,pandiaraj44/react-native,facebook/react-native,myntra/react-native,javache/react-native,janicduplessis/react-native,javache/react-native,pandiaraj44/react-native,pandiaraj44/react-native,javache/react-native,facebook/react-native,arthuralee/react-native,arthuralee/react-native,myntra/react-native,janicduplessis/react-native,myntra/react-native,arthuralee/react-native