mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-12 15:24:18 +00:00
chrome debugging
This commit is contained in:
parent
570607fa86
commit
a9ef54d65d
@ -81,10 +81,10 @@ JNIEXPORT jstring JNICALL Java_com_reacttests_RealmReactAndroid_injectRealmJsCon
|
|||||||
const char* cmd = env->GetStringUTFChars(chrome_cmd, NULL);
|
const char* cmd = env->GetStringUTFChars(chrome_cmd, NULL);
|
||||||
const char* args = env->GetStringUTFChars(chrome_args, NULL);
|
const char* args = env->GetStringUTFChars(chrome_args, NULL);
|
||||||
realm_js::json json = realm_js::json::parse(args);
|
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_cmd, cmd);
|
||||||
env->ReleaseStringUTFChars(chrome_args, args);
|
env->ReleaseStringUTFChars(chrome_args, args);
|
||||||
return env->NewStringUTF("Echo");
|
return env->NewStringUTF(response.dump().c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user