Skip to content

Modify AGP 9 upgrade skill#12

Merged
JoseAlcerreca merged 1 commit intomainfrom
kk/agp-9-updates
Apr 15, 2026
Merged

Modify AGP 9 upgrade skill#12
JoseAlcerreca merged 1 commit intomainfrom
kk/agp-9-updates

Conversation

@kkuan2011
Copy link
Copy Markdown
Contributor

Minor changes to the skill, including stating that it's for non-KMP projects.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the AGP 9 upgrade skill documentation to explicitly exclude Kotlin Multiplatform (KMP) projects and adds a new step for updating dependencies like KSP and Hilt. It also reorganizes the migration steps and introduces a new guidelines section in the recipes documentation to enforce the use of public APIs and specific reference repositories. The review feedback suggests improving consistency in the step headers by standardizing the use of colons and removing trailing periods, as well as correcting a grammatical error in the kapt migration description.


If Hilt is used in the project, ensure it is on version 2.59.2 or higher.

### Step 2: Migrate to built-in Kotlin.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with Step 1, consider removing the trailing period from the header.

Suggested change
### Step 2: Migrate to built-in Kotlin.
### Step 2: Migrate to built-in Kotlin

See [the guide](references/android/build/migrate-to-built-in-kotlin.md) for detailed information.

### Step 2. Migrate to the new AGP DSL.
### Step 3. Migrate to the new AGP DSL.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The header formatting is inconsistent. Use a colon after the step number and remove the trailing period to match the style of Step 1.

Suggested change
### Step 3. Migrate to the new AGP DSL.
### Step 3: Migrate to the new AGP DSL


If KSP (`com.google.devtools.ksp`) is used in the project, ensure it is on
version 2.3.6 or higher.
### Step 4. Migrate kapt to KSP or legacy-kapt
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Use a colon after the step number for consistency with the previous steps.

Suggested change
### Step 4. Migrate kapt to KSP or legacy-kapt
### Step 4: Migrate kapt to KSP or legacy-kapt

Comment on lines +64 to +66
If KSP (`com.google.devtools.ksp`) or kapt (`org.jetbrains.kotlin.kapt`) are
used in the project, [KSP, kapt, and legacy-kapt](references/ksp-kapt.md)
for detailed migration steps.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The sentence is grammatically incomplete and uses 'are' with a singular 'or' construction. It should include a verb like 'see' and use 'is' for grammatical correctness.

Suggested change
If KSP (`com.google.devtools.ksp`) or kapt (`org.jetbrains.kotlin.kapt`) are
used in the project, [KSP, kapt, and legacy-kapt](references/ksp-kapt.md)
for detailed migration steps.
If KSP (`com.google.devtools.ksp`) or kapt (`org.jetbrains.kotlin.kapt`) is
used in the project, see [KSP, kapt, and legacy-kapt](references/ksp-kapt.md)
for detailed migration steps.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix

for detailed migration steps.

### Step 4. BuildConfig
### Step 5. BuildConfig
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Use a colon after the step number for consistency.

Suggested change
### Step 5. BuildConfig
### Step 5: BuildConfig

for detailed information.

### Step 5. Update gradle.properties
### Step 6. Update gradle.properties
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Use a colon after the step number for consistency.

Suggested change
### Step 6. Update gradle.properties
### Step 6: Update gradle.properties

@JoseAlcerreca JoseAlcerreca merged commit 58eefb9 into main Apr 15, 2026
2 checks passed
@kkuan2011 kkuan2011 deleted the kk/agp-9-updates branch April 16, 2026 05:27
@abduadil
Copy link
Copy Markdown

interestingly I added this skill and it applied it to a KMP project and I could not finish the upgrade in the end. Is there a way to make the rule "not applicable to KMP projects" more obvious to an LLM?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants