Repository navigation
android/build.sh: VTESSE_ANDROID_IMAGE uses a ready image instead of building one - #39
Conversation
…building one Without the variable nothing changes: ci/Dockerfile.android is built as vtesse-android and used, as in CI. With it the script skips docker build and runs gradle in the given image, which must provide JDK 17, the SDK/NDK/CMake of ci/Dockerfile.android and gradle on PATH.
PR Summary by QodoAllow Android builds to use an existing Docker image
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1.
|
…tion Qodo on #39: a ready image without ANDROID_HOME/ANDROID_SDK_ROOT would only fail inside the Android Gradle Plugin. The script now checks for gradle on PATH and ANDROID_HOME or ANDROID_SDK_ROOT before building and says what is missing; the requirement is documented in the script header and android/README.md.
|
/review |
|
Code review by qodo was updated up to the latest commit 0fec6e5 |
…he build Qodo on #39: an image whose ENTRYPOINT does not run its arguments would swallow both the readiness check and gradle. With VTESSE_ANDROID_IMAGE the two docker run calls now pass --entrypoint= ; the default vtesse-android path is unchanged.
|
/review |
|
Code review by qodo was updated up to the latest commit 67e2aaa |
android/build.shbuildsci/Dockerfile.androidasvtesse-androidon every run. On a machine that already has a suitable Android image (JDK 17, SDK, NDK, CMake,gradleon PATH) this means a second 4.5 GB image for the same job.VTESSE_ANDROID_IMAGE=<image>now skipsdocker buildand runs Gradle in that image. Without the variable the script behaves exactly as before, so CI is unchanged.android/README.mddocuments the variable.Tested:
VTESSE_ANDROID_IMAGE=<image with SDK 35, NDK 27.2.12479018, CMake 3.22.1, Gradle 8.11.1> android/build.sh assembleDebug→app-debug.apk,vtesse-androidnot rebuilt (1 min 34 s from a cold Gradle cache);android/build.sh assembleDebug(no variable) → builds/usesvtesse-androidas before, same APK;sh -npasses; shellcheck reports only the two notes the file already had (SC1091, SC2048).