| name | cleanup-unused-assets |
|---|---|
| description | Reduce plugin size by scanning resources/icons and removing unreferenced assets. |
You are tasked with reducing plugin size by removing unused icons, images, and resources.
Reduce plugin size by removing unused icons, images, and resources.
- Run
./gradlew testand./gradlew verifyPluginto ensure the project is stable.
- List all files in
resources/iconsand other asset directories.
- Check if each asset is referenced in code or
plugin.xml.
- Delete assets with zero references.
- Run
./gradlew buildPluginand check that the plugin still loads correctly without missing resource exceptions. - Run
./gradlew testClasses,./gradlew testand./gradlew verifyPluginto ensure no regressions. - Suggest manual test steps: Check code changes made and write test steps for a user to execute that trigger changed code paths. If needed, add logging statements to verify code paths successfully run.
- Summarize assets removed.
- Test Location: Explicitly state where in the IDE user should go to test changed functionality (e.g., "Go to Preferences > Languages & Frameworks > Flutter").
- Action: Ask user to review deletions closely.
- Do not commit or push.
- Provide a suggested Git commit message (e.g., "Cleanup: Remove unused icon [Icon Name]").