Add API to set load flags used by UnpackingJSBundleLoader

Reviewed By: tadeuzagallo

Differential Revision: D3557667

fbshipit-source-id: 5665667185cda10415210efce83685c3e3abee92
This commit is contained in:
Michał Gregorczyk
2016-08-04 15:42:52 -07:00
committed by Facebook Github Bot 6
parent 38979f9c68
commit f08f23f8cb
3 changed files with 24 additions and 3 deletions

View File

@@ -104,6 +104,7 @@ public abstract class JSBundleLoader {
.setDestinationPath(new File(context.getFilesDir(), "optimized-bundle"))
.checkAndUnpackFile(bundleName + ".meta", "bundle.meta")
.unpackFile(bundleName, "bundle.js")
.setLoadFlags(UnpackingJSBundleLoader.UNPACKED_JS_SOURCE)
.build();
}