diff --git a/packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/utils/NdkConfiguratorUtils.kt b/packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/utils/NdkConfiguratorUtils.kt index d081afbfcf0284..479c3f742eda99 100644 --- a/packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/utils/NdkConfiguratorUtils.kt +++ b/packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/utils/NdkConfiguratorUtils.kt @@ -39,9 +39,6 @@ internal object NdkConfiguratorUtils { // Parameters should be provided in an additive manner (do not override what // the user provided, but allow for sensible defaults). val cmakeArgs = ext.defaultConfig.externalNativeBuild.cmake.arguments - if ("-DGENERATED_SRC_DIR" !in cmakeArgs) { - cmakeArgs.add("-DGENERATED_SRC_DIR=${File(project.buildDir, "generated/source")}") - } if ("-DPROJECT_BUILD_DIR" !in cmakeArgs) { cmakeArgs.add("-DPROJECT_BUILD_DIR=${project.buildDir}") } @@ -49,12 +46,6 @@ internal object NdkConfiguratorUtils { cmakeArgs.add( "-DREACT_ANDROID_DIR=${extension.reactNativeDir.file("ReactAndroid").get().asFile}") } - if ("-DREACT_ANDROID_BUILD_DIR" !in cmakeArgs) { - cmakeArgs.add( - "-DREACT_ANDROID_BUILD_DIR=${ - extension.reactNativeDir.file("ReactAndroid/build").get().asFile - }") - } if ("-DANDROID_STL" !in cmakeArgs) { cmakeArgs.add("-DANDROID_STL=c++_shared") }