-
Notifications
You must be signed in to change notification settings - Fork 135
Ignore false positives in the unused dependencies report #14939
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
Conversation
Removes the `apache.http.client.android` dependency from `androidTestImplementation` configurations.
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
|
|
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
This reverts commit 895ff5c.
Configures the dependency analysis plugin to ignore certain dependencies that are reported as unused but are required at runtime.
Exclude `androidx.compose.material.icons.extended` and `androidx.hilt.navigation.compose` from the dependency analysis for the `apifaker` library.
This dependency is required for the app to build successfully, so it's being excluded from the unused dependency check to prevent build failures.
Adds a `dependencyAnalysis` rule to `fluxc-tests` to exclude `androidx.paging.runtime`.
This dependency is required to prevent a `NoClassDefFoundError` during the card reader connection flow.
|
@irfano What triggered this work? Can I get more context on it? Why do we have to add those lists now (and maintain it in the future)? |
|
Sorry for not adding more information to the PR description. I'm monitoring the Dependency Analysis Alert (p1762837882059759-slack-C8ZFBDQC9) as part of my exception catcher rotation, and these false positives appeared in the health report. |
AdamGrzybkowski
left a comment
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.
The build appears to be healthy now. Do we know what has changed recently that caused so many false positives?
These were probably in the report for a long time, but we just hadn’t taken action before. |
Description
This excludes false positive dependencies from unused dependencies report.
For
libs.squareup.okhttp3.tls, the project can still run without it, but it was added recently because the card connection flow crashes without it. So, I added an exception for it as well.Test Steps
./gradlew buildHealthImages/gif
RELEASE-NOTES.txtif necessary. Use the "[Internal]" label for non-user-facing changes.