From 93e083001778bb1ad48283e750e33567b565f5e0 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Thu, 23 Jun 2022 21:48:05 -0700 Subject: [PATCH] [android] Do not import a linked Android.mk file if the library is not specifying a libraryName --- packages/platform-android/native_modules.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/platform-android/native_modules.gradle b/packages/platform-android/native_modules.gradle index 3fa41853c..4951eafbf 100644 --- a/packages/platform-android/native_modules.gradle +++ b/packages/platform-android/native_modules.gradle @@ -257,7 +257,11 @@ class ReactNativeModules { if (packages.size() > 0) { libraryIncludes = packages.collect { - it.androidMkPath ? "include ${it.androidMkPath}" : null + if (it.androidMkPath != null && it.libraryName != null) { + "include ${it.androidMkPath}" + } else { + null + } }.minus(null).join('\n') libraryModules = packages.collect { it.libraryName ? "${codegenLibPrefix}${it.libraryName}" : null