Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Could you add Retrofit and RxJava support? #1816

Description

@JackRo

Thanks to you for providing to us the powerful and great annotations library. But lately, in android development , the Retrofit and RxJava is very popular, could you add Retrofit and RxJava support?

Activity

  1. dodgex commented on Jul 6, 2016

    @dodgex
    Member

    can you elaborate what exactly you want to see in AA?

  2. JackRo commented on Jul 7, 2016

    @JackRo
    Author

    Sorry, but I want to see the http request can use the Retrofit and can support RxJava, so we can use RxJava and Retrofit to operate our http request.

  3. dodgex commented on Jul 7, 2016

    @dodgex
    Member

    I think for using Retrofit you wont need a special AA support as Retrofit is already easy to use (in comparision to Spring-Rest).

    and about RxJava i think this is something that Retrofit has to support in this case. not sure if it does?

    could you post some (pseudo-)code how you would like to work with this feature? how you would like your code to look when AA would have implemented this feature request?

  4. WonderCsabo commented on Jul 13, 2016

    @WonderCsabo
    Member

    Retrofit support does not make sense, as we have the same solution with the REST annotations.
    RxJava support would be great.

  5. JackRo commented on Jul 14, 2016

    @JackRo
    Author

    But Retrofit is base on the okhttp, I feel the okhttp will work better.

  6. WonderCsabo commented on Jul 14, 2016

    @WonderCsabo
    Member

    But how we should support Retrofit? It does not need any support, it already works.

  7. JackRo commented on Jul 18, 2016

    @JackRo
    Author

    Well, i also think it works great. I'm sorry to say that maybe i don't understand the AA code how to work, so when i have free time, i will review your AA source code and then show you my thoughts that how to support Retrofit.

  8. mmotorniy commented on Jul 20, 2016

    @mmotorniy

    @JackRo AndroidAnnotations really works good with Retrofit 2.0+ and RxJava.

  9. mdumrauf commented on Aug 1, 2016

    @mdumrauf

    @WonderCsabo based on @JackRo comment, maybe you can provide a way to change the strategy on which is the underlying HTTP library (okhttp in this case) for the current REST annotations.

  10. WonderCsabo commented on Aug 1, 2016

    @WonderCsabo
    Member

    You can easily use okhttp with our rest client. Just change the Spring REST template version to the latest milestone of 2.0 and set the request factory in your @rest annotation to okhttp request factory.

  11. JackRo commented on Aug 2, 2016

    @JackRo
    Author

    @WonderCsabo OK, I try to do it

  12. WonderCsabo commented on Aug 29, 2016

    @WonderCsabo
    Member

    Closed in favor of #1842.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions