Skip to content

Instantly share code, notes, and snippets.

@callstack-bot
Created January 31, 2023 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save callstack-bot/8f6a7f101afe659c4b4d74f7d8f26531 to your computer and use it in GitHub Desktop.
Save callstack-bot/8f6a7f101afe659c4b4d74f7d8f26531 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