Permalink
Browse files

Fix the RN OSS gradle build

Reviewed By: ericvicenti

Differential Revision: D4636504

fbshipit-source-id: 89a776902d893c19dff81afcf1cba631c220c9c2
  • Loading branch information...
mhorowitz authored and facebook-github-bot committed Mar 1, 2017
1 parent 48a84df commit 18eb7aea97a4cdc76354745f4caa675429e15db0
Showing with 4 additions and 2 deletions.
  1. +1 −0 ReactAndroid/src/main/jni/xreact/jni/BUCK
  2. +3 −2 ReactAndroid/src/main/jni/xreact/jni/OnLoad.cpp
@@ -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"),
@@ -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;

0 comments on commit 18eb7ae

Please sign in to comment.