From a32bb3f70601b97c62189415f65e2a03d0c8fc15 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Wed, 19 Oct 2022 11:50:53 -0700 Subject: [PATCH] Let the user use the default CMakeList inside the template. Summary: I forgot to update the path of the default CMakeLists file for the template. I'm doing it here. Changelog: [Internal] [Changed] - Let the user use the default CMakeList inside the template Reviewed By: mdvacca, cipolleschi Differential Revision: D40517207 fbshipit-source-id: 7c02ff5893064dbf54ad573c2984884b1017dacf --- .../kotlin/com/facebook/react/utils/NdkConfiguratorUtils.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 2cca27d547c5c6..df09d4efcd35fa 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 @@ -60,8 +60,10 @@ internal object NdkConfiguratorUtils { // If the user has not provided a CmakeLists.txt path, let's provide // the default one from the framework if (ext.externalNativeBuild.cmake.path == null) { - System.err.println("NCOR: Patching cmake path file") - ext.externalNativeBuild.cmake.path = File("TODO") + ext.externalNativeBuild.cmake.path = + File( + extension.reactNativeDir.get().asFile, + "cmake-utils/default-app-setup/CMakeLists.txt") } // Parameters should be provided in an additive manner (do not override what