Skip to content

Commit

Permalink
Update native_modules.gradle (#1738)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomekzaw authored and thymikee committed Nov 4, 2022
1 parent 0e63e75 commit 7fc6f44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli-platform-android/native_modules.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7fc6f44

Please sign in to comment.