Add ability to load “unbundles” to android

Summary:
public

This adds the ability to load “unbundles” in RN android apps. Unbundles are created by invoking the packager with the `unbundle` command rather than `bundle`.

The code detects usage of an “unbundle” by checking for the existence of a specific asset.

Reviewed By: astreet

Differential Revision: D2739596

fb-gh-sync-id: d0813c003fe0fa7b47798b970f56707079bfa5d7
This commit is contained in:
David Aurelio
2016-01-21 13:57:32 -08:00
committed by facebook-github-bot-3
parent 0963192b18
commit 17e1ceb543
18 changed files with 313 additions and 27 deletions

View File

@@ -76,7 +76,7 @@ function uInt32Buffer(n) {
function buildModuleTable(buffers) {
// table format:
// - table_length: uint_32 length of all table entries in bytes
// - table_length: uint_32 length of all table entries in bytes + the table length itself
// - entries: entry...
//
// entry: