Setup Android Gitignore
| This documentation was generated with the assistance of AI. Please report any inaccuracies. |
iru-setup-android-gitignore composes the root .gitignore and one per-module .gitignore for an Android
(Gradle/Kotlin) library or app project, using
irurueta-android-glutils's own .gitignore,
lib/.gitignore and app/.gitignore as the concrete reference templates. It never overwrites an existing
.gitignore silently: it announces whether it is creating files from scratch or updating existing ones, and for each
pre-existing file it warns, shows a diff and asks the user to Update, Keep as is, or Replace.
Purpose
The skill produces a house-standard Android .gitignore: an unconditional root base (Gradle build output,
local.properties, IDE files, keystores, google-services.json, profiling output, the Kotlin 2.x compiler’s
root-level .kotlin/ cache, the UI tests' .ui-screenshots/ capture directory, plus the catalog’s own Antora docs/build//docs/node_modules/ additions), a
one-line anchored /build .gitignore for each Gradle module, and a conditionally-detected root section for
Fastlane output. It deliberately never ignores a vendored jacoco-<ver>/ JaCoCo CLI directory if the repository
vendors one (as the reference repository does, for iru-setup-android-github-workflows’ opt-in
coverage-conversion fallback), since CI would depend on that directory staying tracked to convert coverage
without a network dependency. It mirrors `iru-setup-java-gitignore’s warn-and-ask contract (Update / Keep as is /
Replace per pre-existing file), adapted to the Android/Gradle ecosystem. `.ui-screenshots/ is the repository-wide
capture directory of the catalog’s UI contract (cleared by every full UI test run, with the few images the docs use
copied into the Antora module’s images/ui/), so it is ignored unconditionally; the committed .ui-quality.yml next
to it is never ignored.
Plugin
Shipped by the iru-android plugin of the ai-catalog marketplace (install with /plugin install iru-android@ai-catalog; see Plugins).
Inputs
| Argument | Required | Description | Default |
|---|---|---|---|
|
No |
|
Detected from whether a root |
|
No |
Comma- or space-separated Gradle module directory names that should each get their own |
Derived from every |
|
No |
|
|
Outputs
-
A root
.gitignore— newly created, or, when one already existed, updated (merged), replaced with the bare template, or left as is, according to the user’s answer oron-existing. -
A
<module>/.gitignorefor each resolved module (typicallylib,app) — newly created, or handled the same way as the root file when it existed; skipped entirely when its content already matches. -
A closing report stating whether the run created from scratch or updated existing files, the action taken per pre-existing file (updated / replaced / kept as is, and whether the user or
on-existingchose it, with the template lines still missing from each kept file), which conditional Step 4 section (Fastlane) was included versus skipped and why, and confirmation that no ignore pattern would match a vendoredjacoco-<ver>/CLI directory if the repository has one.
Execution flow
Dependencies
Invokes
None — iru-setup-android-gitignore is a leaf skill; it does not call any other skill in this catalog.
Invoked by
-
Setup Android Repository — Step 6 runs
iru-setup-android-gitignoreafteriru-setup-android-library/iru-setup-android-appandiru-setup-antorahave run, so it can detect their generated module layout (settings.gradle.kts) and Antora docs build output already in place.
Source
SKILL.md on GitHub — the file this page was generated from.