From a9ef54d65d4292b7c3b4f1673f79202df03b17e4 Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Wed, 13 Jan 2016 11:18:10 -0800 Subject: [PATCH] chrome debugging --- src/android/com_reacttests_RealmReactAndroid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/android/com_reacttests_RealmReactAndroid.cpp b/src/android/com_reacttests_RealmReactAndroid.cpp index 19a6f01d..28d53f36 100644 --- a/src/android/com_reacttests_RealmReactAndroid.cpp +++ b/src/android/com_reacttests_RealmReactAndroid.cpp @@ -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()); }