Remove Apache HTTP dependency #1049
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Apache HTTP classes have been removed from the Android SDK in Android 6.0. Developers needing these classes can add
useLibrary 'org.apache.http.legacy'
to their Gradle file to keep using that library.Robolectric now provides shadows for this library in a separate module (
org.robolectric:shadows-httpclient
), so it is no longer part of the main module.Changelog
Remove dependency on Apache HTTP.
Test Plan
As per CONTRIBUTING.md, I've ran
./gradlew test
, but the task fails with the following message:Note that I have the same result from
master
.