Custom file format for string files.

Summary:
We were using JSON as the file format for strings dumped as assets. The
resulting `APK` for fb4a is around 400-500 KB bigger in size, which is not
acceptable. This introduces a custom format (explained in javadocs).

In order to further trim the file size, we store resource ids instead of
resource names. In order to achieve this, the strings file generation step is
now delayed, running it after the final `R.java` file is created by `aapt`.
Instead of parsing `R.java`, I also make `aapt` generate `R.txt` which is very
easy to parse.
14 files changed
tree: c0735cec6be7a2822c1df13b9b75783570626312
  1. .idea/
  2. bin/
  3. config/
  4. docs/
  5. lib/
  6. plugin/
  7. pmd/
  8. scripts/
  9. src/
  10. test/
  11. testdata/
  12. third-party/
  13. .buckconfig
  14. .classpath
  15. .gitignore
  16. .project
  17. .travis.yml
  18. buck.iml
  19. build.xml
  20. DEFS
  21. LICENSE
  22. README.md
README.md

Buck

Buck is an Android build tool. To see what Buck can do for you, check out the documentation at http://facebook.github.io/buck/.

Build Status

Installation

To build Buck, run the following:

git clone git@github.com:facebook/buck.git
cd buck
ant
./bin/buck --help

License

Apache License 2.0