Initialize glog in bridge
Reviewed By: AaaChiuuu Differential Revision: D4614463 fbshipit-source-id: c115534c214f6bb40808f12e571a66afc9206d4d
This commit is contained in:
parent
611661e5fe
commit
db8cec4331
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue