Skip to content

Instantly share code, notes, and snippets.

@callstack-bot
Created October 7, 2022 12:01
Show Gist options
  • Save callstack-bot/54c60198e445fe5d1d868682b1bf61ab to your computer and use it in GitHub Desktop.
Save callstack-bot/54c60198e445fe5d1d868682b1bf61ab to your computer and use it in GitHub Desktop.
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