transdroid icon indicating copy to clipboard operation
transdroid copied to clipboard

Apache HTTP Legacy is deprecated and removed past API 23

Open magneticflux- opened this issue 6 years ago • 5 comments

The Apache HTTP package should be replaced with a more modern HTTP client such as OkHttp or the built-in Android dependencies. Additionally, Dagger 2 could be used to inject a singleton HTTP client with current application settings instead of requiring initialize() methods and null checks.

magneticflux- avatar Dec 08 '17 15:12 magneticflux-

I am very aware of this but I strongly rely on the library. Replacing it is certainly on my wish list but it means rewriting practically all code surrounding the connecting to torrent clients, which means rewriting all supported client code. So yeah, long term...

erickok avatar Dec 10 '17 08:12 erickok

might be time to revisit that plan 😅

I'm getting these errors by opening the master branch project in Android Studio even after Gradle sync

Compiling works fine, but it's a bit fiddly guessing your way through the code without autocomplete.

image

twig avatar Jan 10 '23 10:01 twig

yes, it's annoying. is there a good way to split this up so we don't need to do a migration all at once?

bwitt avatar Jan 30 '23 22:01 bwitt

Hey guys, I am sorry for not responding much. Life... but I plan to pick up some work for Transdroid again soon and certainly this library deprecation should be part of that work. I'll probably try to use the non-bundled Apache HTTP library as that is officially maintained and I suspect not much work to migrate. At one point I tried to rewrite using OkHttp (and Retrofit) but it is a big job that requires lots of testing. If I go the latter route I will also have to depart with many smaller support clients I suspect, which are often underused, underdocumented and lacking features. Some I cannot even test myself (such as Synology) as I don;t have the hardware. Anyway, that's for soon.

erickok avatar Feb 02 '23 08:02 erickok

might be time to revisit that plan 😅

I'm getting these errors by opening the master branch project in Android Studio even after Gradle sync

Compiling works fine, but it's a bit fiddly guessing your way through the code without autocomplete.

image

@twig, this should solve your problems for local development: https://github.com/erickok/transdroid/pull/653

Though of course this is not a long term solution

jedrivisser avatar Mar 08 '23 20:03 jedrivisser