feat: Improve error handling for Android SDK license acceptance in build workflow
Build Android APK / build-apk (push) Failing after 14m14s

This commit is contained in:
2026-04-07 19:05:14 +07:00
parent d48e384767
commit 77429a1de3
+10 -1
View File
@@ -36,7 +36,16 @@ jobs:
- name: Install Android SDK packages - name: Install Android SDK packages
run: | run: |
sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.0" sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.0"
yes | sdkmanager --licenses
set +e
yes | sdkmanager --licenses >/dev/null 2>&1
LICENSE_EXIT=$?
set -e
if [ "$LICENSE_EXIT" -ne 0 ] && [ "$LICENSE_EXIT" -ne 141 ]; then
echo "sdkmanager --licenses failed with exit code $LICENSE_EXIT"
exit "$LICENSE_EXIT"
fi
- name: Show Flutter and Dart version - name: Show Flutter and Dart version
run: | run: |