commit | aecf30529199ae9a8d9977c92054bfe4e8cd6a4f | [log] [tgz] |
---|---|---|
author | Natthu Bharambe <natthu@fb.com> | Fri Oct 18 11:36:25 2013 -0700 |
committer | Michael Bolin <mbolin@fb.com> | Tue Nov 12 17:53:16 2013 -0800 |
tree | c0735cec6be7a2822c1df13b9b75783570626312 | |
parent | d62c824611d08444432a79e0cb43ceb3772f008b [diff] |
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.
Buck is an Android build tool. To see what Buck can do for you, check out the documentation at http://facebook.github.io/buck/.
To build Buck, run the following:
git clone git@github.com:facebook/buck.git cd buck ant ./bin/buck --help
Apache License 2.0