From 962d9c9c1a27c56a749cd26008d7fb2ef7fccfbc Mon Sep 17 00:00:00 2001 From: Kudo Chien Date: Tue, 3 Sep 2019 18:25:56 -0700 Subject: [PATCH] Fix compile error for native debug build (#26248) Summary: Fix Android gradle build error for native debug build. `NATIVE_BUILD_TYPE=Debug ./gradlew :ReactAndroid:installArchives` The root cause is `folly::Future` not declared. As we don't include true folly::Future implementation in OSS build but to use a forward declaration, the fix is pretty much like to original declaration as `folly::Future`. ## Changelog [Android] [Fixed] - Fix compile error for native debug build This change could be ignored from changelog which is only for internal development. Pull Request resolved: https://github.com/facebook/react-native/pull/26248 Test Plan: Makes sure `NATIVE_BUILD_TYPE=Debug ./gradlew :ReactAndroid:installArchives` build without errors. Differential Revision: D17169696 Pulled By: mdvacca fbshipit-source-id: 42e8b84b7ee0d1bd99d913702df98bc030965f63 --- ReactCommon/hermes/inspector/Inspector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ReactCommon/hermes/inspector/Inspector.cpp b/ReactCommon/hermes/inspector/Inspector.cpp index ea3c8b3024f..d1607a61925 100644 --- a/ReactCommon/hermes/inspector/Inspector.cpp +++ b/ReactCommon/hermes/inspector/Inspector.cpp @@ -19,6 +19,7 @@ // this. template class folly::Future; +template class folly::Future; namespace folly { namespace futures {