fdroid build returns wrong value to OS
fdroid build does not return error values to the operating system. For example if a gradle build fails (tested with a simple syntax error in the source code) ends up with at least one build failing.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':core:compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
The error code of the grade process is not forwarded by fdroid, so CI/CD environments that use and text fdroid builds, always end up in a SUCCESSFUL BUILD.
Please return the error code or at least do exit(1) instead of exit(0) if a gradle build fails.