-
-
Save callstack-bot/54c60198e445fe5d1d868682b1bf61ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (isNewArchitectureEnabled()) { | |
// We configure the NDK build only if you decide to opt-in for the New Architecture. | |
externalNativeBuild { | |
ndkBuild { | |
arguments "APP_PLATFORM=android-21", | |
"APP_STL=c++_shared", | |
"NDK_TOOLCHAIN_VERSION=clang", | |
"GENERATED_SRC_DIR=$buildDir/generated/source", | |
"PROJECT_BUILD_DIR=$buildDir", | |
- "REACT_ANDROID_DIR=$rootDir/../node_modules/react-native/ReactAndroid", | |
- "REACT_ANDROID_BUILD_DIR=$rootDir/../node_modules/react-native/ReactAndroid/build", | |
- "NODE_MODULES_DIR=$rootDir/../node_modules" | |
+ "REACT_ANDROID_DIR=../../../../node_modules/react-native/ReactAndroid", | |
+ "REACT_ANDROID_BUILD_DIR=../../../../node_modules/react-native/ReactAndroid/build", | |
+ "NODE_MODULES_DIR=../../../../node_modules" | |
cFlags "-Wall", "-Werror", "-fexceptions", "-frtti", "-DWITH_INSPECTOR=1" | |
cppFlags "-std=c++17" | |
// Make sure this target name is the same you specify inside the | |
// src/main/jni/Android.mk file for the `LOCAL_MODULE` variable. | |
targets "okwasniewskionboarding_appmodules" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment