Android API 23 - HttpClient 4.X repackaged

前端 未结 1 745
后悔当初
后悔当初 2021-01-02 17:47

Disclaimer

  • I know we shouldn\'t use HttpClient on Android anymore
  • In API 23 we have option to use useLibrary \'org.apache.http.legacy\'
相关标签:
1条回答
  • 2021-01-02 18:10

    Well, to answer my own question, I've put up project, which will repackage and build HttpClient in bundle with HttpMime, HttpCore and HttpClient-Cache packages into different namespace.

    Currently the version provided is 4.3.3 (in sync with ASF HC 4.3.3 version)

    https://github.com/smarek/httpclient-android

    It's quite customizable, so changing the package/artifact name or version, adjusting the build to your needs and so on should be no problem.

    It's also published on Maven Central under identifier cz.msebera.android:httpclient:4.3.3 and all your code imports currently using org.apache.http should be migrated (for sake of using this library) to cz.msebera.android.httpclient

    0 讨论(0)
提交回复
热议问题