CatalystInstanceImpl.setSourceURL

Reviewed By: javache

Differential Revision: D4422416

fbshipit-source-id: bc49485ac64064909f32375b6b8360a0a505975b
This commit is contained in:
Ashok Menon
2017-01-18 08:55:46 -08:00
committed by Facebook Github Bot
parent bbd5750bb4
commit 76c4faee5e
6 changed files with 35 additions and 19 deletions

View File

@@ -181,6 +181,7 @@ public class CatalystInstanceImpl implements CatalystInstance {
MessageQueueThread moduleQueue,
ModuleRegistryHolder registryHolder);
/* package */ native void setSourceURL(String sourceURL);
/* package */ native void loadScriptFromAssets(AssetManager assetManager, String assetURL);
/* package */ native void loadScriptFromFile(String fileName, String sourceURL);
/* package */ native void loadScriptFromOptimizedBundle(String path, String sourceURL, int flags);

View File

@@ -83,7 +83,7 @@ public abstract class JSBundleLoader {
return new JSBundleLoader() {
@Override
public String loadScript(CatalystInstanceImpl instance) {
instance.loadScriptFromFile(null, proxySourceURL);
instance.setSourceURL(proxySourceURL);
return realSourceURL;
}
};