summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorBruno ZIKI Kongawi <EtherBit@users.noreply.github.com>2021-01-04 13:29:32 -0800
committerGitHub <noreply@github.com>2021-01-04 13:29:32 -0800
commit0168178a17ea80bd1ade73b6f7b10ad2c1b36af3 (patch)
tree1623c2f12ff1dd481ea5b1ae64c006018985f538 /android
parent82836a62befb31ef41dd75ccc17992ed575841db (diff)
downloadflatbuffers-0168178a17ea80bd1ade73b6f7b10ad2c1b36af3.tar.gz
flatbuffers-0168178a17ea80bd1ade73b6f7b10ad2c1b36af3.tar.bz2
flatbuffers-0168178a17ea80bd1ade73b6f7b10ad2c1b36af3.zip
Fix multiple fbs code generation failure (#6365)
Diffstat (limited to 'android')
-rw-r--r--android/app/build.gradle12
1 files changed, 10 insertions, 2 deletions
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 3ee9ba2f..4888067d 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/"