chrome debugging

This commit is contained in:
Ari Lazier 2016-01-13 11:18:10 -08:00
parent 570607fa86
commit a9ef54d65d
1 changed files with 2 additions and 2 deletions

View File

@ -81,10 +81,10 @@ JNIEXPORT jstring JNICALL Java_com_reacttests_RealmReactAndroid_injectRealmJsCon
const char* cmd = env->GetStringUTFChars(chrome_cmd, NULL);
const char* args = env->GetStringUTFChars(chrome_args, NULL);
realm_js::json json = realm_js::json::parse(args);
s_rpc_server->perform_request(cmd, json);
realm_js::json response = s_rpc_server->perform_request(cmd, json);
env->ReleaseStringUTFChars(chrome_cmd, cmd);
env->ReleaseStringUTFChars(chrome_args, args);
return env->NewStringUTF("Echo");
return env->NewStringUTF(response.dump().c_str());
}