Skip to content
This repository has been archived by the owner on Feb 18, 2019. It is now read-only.

Commit

Permalink
Don't prepend the asset name string with "file://" for unbundles
Browse files Browse the repository at this point in the history
Summary: D2922108 / PR facebook#5814 broke the “Unbundle” loader by prepending the file path to the entry file with "file://". This converts it back.

Reviewed By: lexs

Differential Revision: D3052749

fb-gh-sync-id: 0b241c50e25f1a1c85265915bee01582d0ba7ac6
shipit-source-id: 0b241c50e25f1a1c85265915bee01582d0ba7ac6
  • Loading branch information
davidaurelio authored and Facebook Github Bot 5 committed Mar 15, 2016
1 parent 39fdce2 commit d0cdabc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReactAndroid/src/main/jni/react/jni/OnLoad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ static void loadScriptFromAssets(JNIEnv* env, jobject obj, jobject assetManager,

env->CallStaticVoidMethod(markerClass, gLogMarkerMethod, env->NewStringUTF("loadScriptFromAssets_read"));
if (JniJSModulesUnbundle::isUnbundle(manager, assetNameStr)) {
loadApplicationUnbundle(bridge, manager, script, "file://" + assetNameStr);
loadApplicationUnbundle(bridge, manager, script, assetNameStr);
} else {
loadApplicationScript(bridge, script, "file://" + assetNameStr);
}
Expand Down

0 comments on commit d0cdabc

Please sign in to comment.