From 0168178a17ea80bd1ade73b6f7b10ad2c1b36af3 Mon Sep 17 00:00:00 2001 From: Bruno ZIKI Kongawi Date: Mon, 4 Jan 2021 13:29:32 -0800 Subject: [PATCH] Fix multiple fbs code generation failure (#6365) --- android/app/build.gradle | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 3ee9ba2..4888067 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -48,7 +48,11 @@ android { standardOutput = new ByteArrayOutputStream() errorOutput = new ByteArrayOutputStream() - commandLine 'flatc', '-o', outputCppDir, '--cpp', "${fbsFiles.join(" ")}" + def commandLineArgs = ['flatc', '-o', outputCppDir, '--cpp'] + fbsFiles.forEach{ + commandLineArgs.add(it.path) + } + commandLine commandLineArgs doFirst { delete "$outputCppDir/" @@ -70,7 +74,11 @@ android { standardOutput = new ByteArrayOutputStream() errorOutput = new ByteArrayOutputStream() - commandLine 'flatc', '-o', outputKotlinDir, '--kotlin', "${fbsFiles.join(" ")}" + def commandLineArgs = ['flatc', '-o', outputKotlinDir, '--kotlin'] + fbsFiles.forEach{ + commandLineArgs.add(it.path) + } + commandLine commandLineArgs doFirst { delete "$outputKotlinDir/" -- 2.7.4