Initialize glog in bridge

Reviewed By: AaaChiuuu

Differential Revision: D4614463

fbshipit-source-id: c115534c214f6bb40808f12e571a66afc9206d4d
This commit is contained in:
Marc Horowitz 2017-02-28 14:14:59 -08:00 committed by Facebook Github Bot
parent 611661e5fe
commit db8cec4331
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
#include <folly/dynamic.h>
#include <fb/fbjni.h>
#include <fb/log.h>
#include <fb/xplat_init.h>
#include <cxxreact/Executor.h>
#include <cxxreact/JSCExecutor.h>
#include <cxxreact/Platform.h>
@ -144,7 +145,7 @@ class JReactMarker : public JavaClass<JReactMarker> {
}
extern "C" JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
return initialize(vm, [] {
return xplat::initialize(vm, [] {
// Inject some behavior into react/
ReactMarker::logMarker = JReactMarker::logMarker;
WebWorkerUtil::createWebWorkerThread = WebWorkers::createWebWorkerThread;