Fix yogajni build with gradle (#27275)

Summary:
https://github.com/facebook/react-native/commit/4a69b3e636c479f39a997aec37f716afb3ab6150 changed the way the cpp files for yogajni are included but it doesn't work. I looked at other places where we are using `wildcard` and we need to add `LOCAL_PATH` otherwise the base path will be where this file is included initially, in this case the `react/jni` folder. This causes no cpp files to be included and the jni bindings are not initialized.

## Changelog

[Internal] [Fixed] - Fix yogajni build with gradle
Pull Request resolved: https://github.com/facebook/react-native/pull/27275

Test Plan: Tested that it builds properly and doesn't crash because of missing native implementation.

Differential Revision: D18633950

Pulled By: mdvacca

fbshipit-source-id: e229fffb53bc335d441060da3c5d4fd840a3c5b0
This commit is contained in:
Janic Duplessis
2019-11-20 23:04:31 -08:00
committed by Facebook Github Bot
parent a7233e45a4
commit 77ba82a6e1
@@ -9,7 +9,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := yoga
LOCAL_SRC_FILES := $(wildcard jni/*.cpp)
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/jni/*.cpp)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/jni