Skip to content

Commit

Permalink
Add patch for cli-platform-android
Browse files Browse the repository at this point in the history
  • Loading branch information
kkafar committed Nov 10, 2022
1 parent 01bb6fa commit 9edaaa9
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
diff --git a/node_modules/@react-native-community/cli-platform-android/native_modules.gradle b/node_modules/@react-native-community/cli-platform-android/native_modules.gradle
index 09eb5a8..4a63eaf 100644
--- a/node_modules/@react-native-community/cli-platform-android/native_modules.gradle
+++ b/node_modules/@react-native-community/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
}

0 comments on commit 9edaaa9

Please sign in to comment.