Compensate for different versions of folly for open source build

Summary: ReactAndroid will need to use the deprecated version of folly::dynamic for the time being.

Reviewed By: bestander

Differential Revision: D3025433

fb-gh-sync-id: fee6beb65d5d0c449f1a08a0d3c593b788905001
shipit-source-id: fee6beb65d5d0c449f1a08a0d3c593b788905001
This commit is contained in:
Michael Lee 2016-03-08 13:16:40 -08:00 committed by Facebook Github Bot 8
parent b473d496c4
commit ab4c73c30c
2 changed files with 2 additions and 1 deletions

View File

@ -69,6 +69,7 @@ jni_library(
compiler_flags = [
'-Wall',
'-Werror',
'-Wno-deprecated-declarations',
'-fexceptions',
'-std=c++11',
'-fvisibility=hidden',

View File

@ -233,7 +233,7 @@ struct WritableNativeArray
static constexpr const char* kJavaDescriptor = "Lcom/facebook/react/bridge/WritableNativeArray;";
WritableNativeArray()
: HybridBase(folly::dynamic::array) {}
: HybridBase(folly::dynamic({})) {}
static local_ref<jhybriddata> initHybrid(alias_ref<jclass>) {
return makeCxxInstance();