-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dependency Analysis] Remove Unused Dependencies [January 2025
]
#1098
[Dependency Analysis] Remove Unused Dependencies [January 2025
]
#1098
Conversation
This dependency is completely unused. FYI: It got introduced as part of this (7d8d37c) commit, a part of implementing placeholders in compose. ------------------------------------------------------------------------ This removal was suggested by the dependency analysis report, see below: Advice for :media-placeholders Unused dependencies which should be removed: ... implementation 'androidx.compose.material3:material3:1.3.1' ...
This dependency is completely unused. FYI: It got introduced as part of this (7d8d37c) commit, a part of implementing placeholders in compose. ------------------------------------------------------------------------ This removal was suggested by the dependency analysis report, see below: Advice for :media-placeholders Unused dependencies which should be removed: ... implementation 'androidx.compose.ui:ui-tooling-preview:1.7.5'
Although removing the 'androidx.compose.ui:ui' is enough by itself and the build is okay, it is better to add 'androidx.compose.ui:ui-unit' for transitive dependency related purposes. FYI: It got introduced as part of this (7d8d37c) commit, a part of implementing placeholders in compose. ------------------------------------------------------------------------ This addition was suggested by the dependency analysis report, see below: These transitive dependencies should be declared directly: ... implementation 'androidx.compose.ui:ui-unit:1.7.5' ...
Removing the 'androidx.compose.foundation:foundation' dependency wasn't enough by itself as the build was then failing. Adding the transient 'androidx.compose.foundation:foundation-layout' dependency was actually required in order to make the build successful again. FYI: It got introduced as part of this (7d8d37c) commit, a part of implementing placeholders in compose. ------------------------------------------------------------------------ This replacement was suggested by the dependency analysis report, see below: Unused dependencies which should be removed: implementation 'androidx.compose.foundation:foundation:1.7.5' ... These transitive dependencies should be declared directly: ... implementation 'androidx.compose.foundation:foundation-layout:1.7.5' ...
👋 @planarvoid @danilo04 a friendly reminder about this. 🙏 |
👋 @planarvoid @danilo04 another friendly reminder about this. 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the changes @ParaskP7. Everything works as expected.
Awesome, thank you so much @danilo04 for helping with reviewing, but also merging this! 🙇 ❤️ 🚀 |
Description
Based on the
unused
related advises generated by the Dependency Analysis Gradle plugin (see p1738189833942969-slack-C0787KRDYDC), this PR removes the newly added but unused dependencies from this project.Reviewers
👋 @planarvoid & @danilo04, just and FYI here, that I added both of your as reviewers to this change because it relates to this #1095 PR you both worked on. 🙏
Testing Steps
./gradlew buildHealth
task and verify that there is nounused
related advise remaining within both reports, JSON and txt included:build-health-report.json
-> Search forunusedCount
build-health-report.txt
-> Search forunused
unused
related advise remaining within both reports, JSON and txt included:build-health-report.json
-> Search forunusedCount
build-health-report.txt
-> Search forunused