added logging mode for different build modes
Some checks failed
Test setup and build APKs archlinux / Build-APK-Arch-Linux (push) Failing after 7m27s
Test setup and build APKs / Build-and-Create-Development-Environment (push) Successful in 12s

This commit is contained in:
2025-12-10 10:39:53 +01:00
parent 5cdff335c7
commit e47ae1ed20

View File

@@ -6,8 +6,10 @@
if [ "$1" == "clean" ]; then
BUILD_MODE="assembleClean"
BUILD_LOGGING=""
else
BUILD_MODE="assembleDebug"
BUILD_LOGGING="--warning-mode all"
fi
# check if user is root and change user to builder
@@ -27,7 +29,7 @@ yes | /opt/android-sdk/cmdline-tools/latest/bin/sdkmanager --licenses
for dir in src/*/; do
if [ -f "$dir/build.gradle" ]; then
echo "Building project in $dir"
(cd "$dir" && gradle clean $BUILD_MODE)
(cd "$dir" && gradle clean $BUILD_MODE $BUILD_LOGGING)
else
echo "No build.gradle found in $dir, skipping."
fi