Fix the RN OSS gradle build

Reviewed By: ericvicenti

Differential Revision: D4636504

fbshipit-source-id: 89a776902d893c19dff81afcf1cba631c220c9c2
This commit is contained in:
Marc Horowitz 2017-03-01 13:35:32 -08:00 committed by Facebook Github Bot
parent 48a84dffd5
commit 18eb7aea97
2 changed files with 4 additions and 2 deletions

View File

@ -47,6 +47,7 @@ cxx_library(
"//native/fb:fb",
"//native/third-party/android-ndk:android",
"//xplat/folly:molly",
"//xplat/fbgloginit:fbgloginit",
"//xplat/fbsystrace:fbsystrace",
react_native_xplat_target("cxxreact:bridge"),
react_native_xplat_target("cxxreact:module"),

View File

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