Skip to content

Import icons manually#56

Merged
pawcoding merged 3 commits intostagingfrom
refactor/import-icons
Nov 22, 2025
Merged

Import icons manually#56
pawcoding merged 3 commits intostagingfrom
refactor/import-icons

Conversation

@pawcoding
Copy link
Owner

@pawcoding pawcoding self-assigned this Nov 22, 2025
Copilot AI review requested due to automatic review settings November 22, 2025 16:18
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the androidx.compose.material:material-icons-extended dependency and replaces all Material Icons usage with manually imported XML drawable resources, following the recommended approach since Material3 version 1.4.0.

  • Removed the material-icons-extended dependency from the build configuration
  • Added 40+ XML drawable resources for icons that were previously imported from Material Icons
  • Updated all Kotlin code to use painterResource(R.drawable.*) instead of Icons.*
  • Changed function signatures to accept @DrawableRes Int parameters instead of ImageVector

Reviewed changes

Copilot reviewed 52 out of 53 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
gradle/libs.versions.toml Removed materialIconsExtended version declaration and library reference
app/build.gradle.kts Removed androidx.material.icons.extended dependency
app/src/main/res/drawable/*.xml Added 40+ XML drawable resources for icons (solid and outlined variants)
app/src/main/java/de/pawcode/cardstore/ui/sheets/OptionsSheet.kt Updated Option data class to use @DrawableRes Int instead of ImageVector
app/src/main/java/de/pawcode/cardstore/ui/screens/*.kt Updated all screen components to use painterResource() with drawable resources
app/src/main/java/de/pawcode/cardstore/ui/components/*.kt Updated all reusable components to accept Painter or @DrawableRes Int parameters
app/src/main/java/de/pawcode/cardstore/ui/dialogs/ConfirmDialog.kt Removed unused icon parameter from dialog
.gitignore Added .idea/copilot.* to ignored files

Base automatically changed from staging to master November 22, 2025 16:45
@pawcoding pawcoding changed the base branch from master to staging November 22, 2025 18:40
@pawcoding pawcoding merged commit 321cbf2 into staging Nov 22, 2025
7 checks passed
@pawcoding pawcoding deleted the refactor/import-icons branch November 22, 2025 18:40
@pawcoding pawcoding mentioned this pull request Nov 22, 2025
@pawcode-development-releaser
Copy link

🎉 This PR is included in version 1.4.2-staging.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@pawcode-development-releaser
Copy link

🎉 This PR is included in version 1.4.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant