Add android-project-full-audit and local-worker-handoff skills; sync scaffold skill
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
216cf3478d
commit
59fc08fa5f
27 changed files with 1064 additions and 11 deletions
|
|
@ -22,11 +22,11 @@ It checks JDK (needs 17+), the Android SDK (ANDROID_HOME / ANDROID_SDK_ROOT / co
|
|||
|
||||
## Step 2 — Pick compatible versions
|
||||
|
||||
The single most common failure is an incompatible **AGP ↔ Gradle ↔ Kotlin** triple, or using APIs from the wrong AGP major. Before scaffolding:
|
||||
The single most common failure is an incompatible **AGP ↔ Gradle ↔ Kotlin** triple. Before scaffolding:
|
||||
|
||||
1. Note what's actually available: the doctor lists installed `platforms` (→ `compileSdk`) and any cached Gradle distributions.
|
||||
2. If the user specified versions, use them. Otherwise pick a known-good triple and confirm against the AGP release notes (AGP's "Compatible Gradle/Kotlin" table) — **check, don't guess from memory.**
|
||||
3. **Know the AGP major.** AGP 8.x: apply `org.jetbrains.kotlin.android`, use `kotlinOptions`, `packagingOptions`. AGP 9.x: Kotlin is **built in** (do NOT apply `kotlin.android`), use `kotlin { compilerOptions { … } }` and `packaging {}`. The default `scaffold.sh` template targets AGP 8.x — if the user wants AGP 9, adjust the generated `app/build.gradle.kts` accordingly and drop the `kotlin-android` plugin.
|
||||
3. The default `scaffold.sh` template targets **AGP 9** with Kotlin built in (no `kotlin-android` plugin needed). If the user explicitly asks for AGP 8.x instead, adjust accordingly: apply `org.jetbrains.kotlin.android`, use `kotlinOptions`, and downgrade Gradle to ≥8.10.
|
||||
4. Compose needs the Compose compiler plugin (`org.jetbrains.kotlin.plugin.compose`) for Kotlin 2.0+; the template already wires it.
|
||||
|
||||
## Step 3 — Generate the skeleton
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue