Fix multiple fbs code generation failure (#6365)
authorBruno ZIKI Kongawi <EtherBit@users.noreply.github.com>
Mon, 4 Jan 2021 21:29:32 +0000 (13:29 -0800)
committerGitHub <noreply@github.com>
Mon, 4 Jan 2021 21:29:32 +0000 (13:29 -0800)
android/app/build.gradle

index 3ee9ba2..4888067 100644 (file)
@@ -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/"