How to use Google Agera with Retrofit 2

I considered using RxJava to combine multiple reconfigured calls and process the results in a package without a special pattern (*).

But RxJava added a 4661 method that did not allow us to remain under the dex limit. As an alternative, Google simply introduced the “super lightweight Android library” (a total of 650 methods) called Agera. But Retrofit does not have built-in support, so I wonder if anyone knows how to integrate the two.

(*) "to coordinate parallel threads, you need to plunge into more complex synchronization patterns using things like CountDownLatchs, Threads, Executors and Futures." - http://blog.stablekernel.com/replace-asynctask-asynctaskloader-rx-observable-rxjava-android-patterns/

+4
source share
1 answer

There is a GitHub project, retrofit-agera-call-adapter , which you can use (or be inspired by).

+3
source

All Articles