diff options
author | Bruno ZIKI Kongawi <EtherBit@users.noreply.github.com> | 2021-01-04 13:29:32 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-04 13:29:32 -0800 |
commit | 0168178a17ea80bd1ade73b6f7b10ad2c1b36af3 (patch) | |
tree | 1623c2f12ff1dd481ea5b1ae64c006018985f538 /android | |
parent | 82836a62befb31ef41dd75ccc17992ed575841db (diff) | |
download | flatbuffers-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.gradle | 12 |
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/" |