From cd4baeecd0bcf4c2095f6136271ca0e514b9764d Mon Sep 17 00:00:00 2001 From: Tomek Zawadzki Date: Fri, 4 Nov 2022 10:31:49 +0100 Subject: [PATCH] Update native_modules.gradle --- packages/cli-platform-android/native_modules.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli-platform-android/native_modules.gradle b/packages/cli-platform-android/native_modules.gradle index 4a63eafc5..09eb5a856 100644 --- a/packages/cli-platform-android/native_modules.gradle +++ b/packages/cli-platform-android/native_modules.gradle @@ -303,12 +303,12 @@ class ReactNativeModules { if (it.libraryName != null && it.cmakeListsPath != null) { // If user provided a custom cmakeListsPath, let's honor it. String nativeFolderPath = it.cmakeListsPath.replace("CMakeLists.txt", "") - "add_subdirectory($nativeFolderPath ${it.libraryName}_autolinked_build)" + "add_subdirectory($nativeFolderPath${it.libraryName}_autolinked_build)" } else if (it.libraryName != null && it.androidMkPath != null) { // Fallback to previous behavior: reusing androidMkPath. // We assume CMakeLists.txt file is in the same folder as the Android.mk String nativeFolderPath = it.androidMkPath.replace("Android.mk", "") - "add_subdirectory($nativeFolderPath ${it.libraryName}_autolinked_build)" + "add_subdirectory($nativeFolderPath${it.libraryName}_autolinked_build)" } else { null }