-
Notifications
You must be signed in to change notification settings - Fork 133
[WOOMOB-961] Remove unused libsapachehttpclientandroid dependency #14422
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
[WOOMOB-961] Remove unused libsapachehttpclientandroid dependency #14422
Conversation
📲 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.
|
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.
LGTM! Thanks.
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.
Hm, actually it looks like the libs.apache.http.client.android dependency is needed for UI tests.
Interesting, I tried to build the UI tests but it's likely using reflection or something like that. @ParaskP7 is there a way how to mark the dependency as "used" in the dependency dashboard? |
👋 @malinajirka !
Do you mean something like that? dependencyAnalysis {
issues {
onUnusedDependencies {
// This dependency is actually needed otherwise the app will crash with a runtime exception.
exclude(libs.eventbus.android.get().module.toString())
}
}
} |
Nice, that's exactly what I mean - thank you 🙇 ! |
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.
@samiuelson Good catch, I've reverted the removal and suppressed the unused
warning.
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.
LGTM. Thanks!
Fixes WOOMOB-961
Description
This PR removes the unused libs.apache.http.client.android dependency from the project. The dependency was identified as no longer needed and removing it helps reduce the app size and potential security surface area.
Testing information
Green CI should be enough.
The tests that have been performed
I ran
./gradlew :WooCommerce:assembleWasabiDebugAndroidTest
to verify the dependency truly wasn't used.Images/gif
Not applicable for dependency removal.
RELEASE-NOTES.txt
if necessary. Use the "[Internal]" label for non-user-facing changes.