-
Notifications
You must be signed in to change notification settings - Fork 36
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
Switch to Retrofit + OkHttp + Gson #66
Comments
I've tried Retrofit out, but immediately ran into problem - it turned out that there is no convenient way to add api_sig to request. |
@ilya-murzinov there is a pretty standard way to do it, when you create like this:
Or add manual parameter to each request in the interface, but I think first approach is cleaner |
@artem-zinnatullin, yes, I saw it. But we need to get all request parameters to generate api_sig and RequestFacade doesn't provide any capability for this. |
There is Spring's RestTemplate for Android, it provides much more advanced features for such use-cases, maybe we can use it instead? |
@ilya-murzinov damn, you're right... hmm let me think about it, I'll check Also, I'll try to discover solutions with But for practice, you can use Also, I'll be happy if you'll throw away OLDDEPRECATED (and unfortunately mine) library AsyncTaskExecutor. AsyncTasks are bad bad bad, and also they are bad |
@artem-zinnatullin, I've used re-implemented Login fragment with RestTemplate and GreenRobot EventBus. |
Also, I had to use XML responses from LastFM because JSON responses always have status 200 OK (WTF???). But it's not even a bit more complicated then JSON. |
Great, I'm just arrived to Saint-Petersburg and had put your work to the
|
It's a part of Internal code architecture improvement (#53)
The text was updated successfully, but these errors were encountered: