<< All versions
Skill v1.0.1
currentLLM-judged scan90/100kaeawc/auto-mobile/android-gradlew
+1 new
──Details
PublishedOctober 21, 2026 at 06:28 AM
Content Hashsha256:29771bf7c7f87baf...
Git SHAbdcaf89d0c6a
Bump Typepatch
──Files
Files (1 file, 2.7 KB)
SKILL.md2.7 KBactive
SKILL.md · 36 lines · 2.7 KB
version: "1.0.1" name: android-gradlew description: Helper skill for Android-specific validation or build work in the android/ subdirectory; use it when another task needs Gradle wrapper commands run from android/.
Android Gradle Wrapper
Run Android work from android/ via the Gradle wrapper. Never run Gradle tasks from the repo root.
Prerequisites
- A new worktree needs
android/local.propertiescopied from a working checkout. It is gitignored and Gradle cannot resolve the SDK without it. Never commit it. - Never read or print
~/.gradle/gradle.properties; it holds publishing credentials.
Running tasks
- Default:
bash scripts/android/gradlew_task.sh <task> [flags]. It works from any cwd, runs./gradlewfromandroid/with the arguments unchanged, and returns Gradle's exit code. Combined stdout and stderr are shown and saved toscratch/gradlew-<UTC timestamp>-<pid>.log; the log path is printed to stderr before and after the run.-hor--helpas the first argument prints usage. - Modes:
- Plain (when
build-briefis absent,CIis non-empty, orAUTOMOBILE_GRADLEW_NO_BUILD_BRIEFis non-empty): as above, full log shown and tee'd toscratch/. - build-brief (when
build-briefis onPATH,CIis unset/empty and the opt-out is unset/empty): runsbuild-brief -- <args>fromandroid/withBUILD_BRIEF_LOG_DIR=<repo>/scratch. Only build-brief's summary reaches stdout (it prints the raw log path on failure); the wrapper adds no tee and, on a non-zero exit, prints the log directory to stderr. Exit code is Gradle's. - Opt out with
AUTOMOBILE_GRADLEW_NO_BUILD_BRIEF=1when you need the full Gradle output. - build-brief is optional and third-party. The owner installs it with Homebrew, pinned:
brew install static-var/tap/build-brief(pinned version:<VERSION - owner fills in after installing>). Never use acurl | bashinstaller; agents must not install it. - Equivalent without the script:
(cd android && ./gradlew <task>). - Use module-scoped tasks that match the request, for example
:junit-runner:test,:playground:app:testor:auto-mobile-sdk:apiDump. - To reproduce CI's Detekt job run the type-resolved
detektMain detektTest; a per-module:module:detektrun does not reproduce it. - Write long output to
scratch/(the script already does) and read excerpts instead of pasting full logs.
Related skills
prepush-androidfor the fast pre-push smoke check (scripts/prepush-android.sh).validateandtestfor broader lint, build and test runs.check-cifor exact-head CI logs and artifacts.
Treat this as a building-block skill for those, not as the primary workflow when the user asks for a broader task.