Skip to content

Commit 926ee11

Browse files
nqmgamingclaude
andcommitted
docs(readme): clarify which build command to run
`:app:assembleDebug` looks like a variant task but is a lifecycle task that builds every flavor at once, which is surprising when you only wanted the opensource APK. Say so, and point at the variant task instead. Also document `:app:processOpensourceDebugResources` for resource-only changes such as translations — it validates through aapt2 in seconds and does not fail on unrelated Kotlin compile errors. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent b8f7adb commit 926ee11

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,19 @@ repository. Without it those variants don't exist and everything below builds th
196196
./gradlew assembleDebug
197197
```
198198

199+
`:app:assembleDebug` and `./gradlew assembleDebug` are lifecycle tasks: they build
200+
*every* flavor available to you, so on a checkout with `google-services.json` in
201+
place they compile `opensource` and `play` both. Name the variant task —
202+
`:app:assembleOpensourceDebug` — when you only want one.
203+
204+
For changes that only touch resources — `strings.xml`, translations, drawables —
205+
this is much quicker than a full build and tells you whether aapt2 accepts them,
206+
without dragging in unrelated Kotlin compile errors:
207+
208+
```bash
209+
./gradlew :app:processOpensourceDebugResources
210+
```
211+
199212
### Fastlane
200213

201214
```bash

0 commit comments

Comments
 (0)