1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 Retrofit 2.4.0 发布,Android 的 REST 客户端 下载

Discussion in '软件资讯' started by 漂亮的石头, 2018-03-19.

  1. 漂亮的石头

    漂亮的石头 版主 Staff Member

    Joined:
    2012-02-10
    Messages:
    488,244
    Likes Received:
    47
    Retrofit 2.4.0 已发布,Retrofit 是一个类型安全的 REST 客户端,用于 Android 平台。该版本引入了一些新特性,以及修复 bug。

    更新内容


    • New: Retrofit.Builder exposes mutable lists of the added converter and call adapter factories.


    • New: Call adapter added for Scala's Future.


    • New: Converter for JAXB replaces the now-deprecated converter for Simple XML Framework.


    • New: Add Java 9 automatic module names for each artifact corresponding to their root package.


    • Fix: Do not swallow Errors from callbacks (usually OutOfMemoryError).


    • Fix: Moshi and Gson converters now assert that the full response was consumed. This prevents hiding bugs in faulty adapters which might not have consumed the full JSON input which would then cause failures on the next request over that connection.


    • Fix: Do not conflate OkHttp Call cancelation with RxJava unsubscription/disposal. Prior to this change, canceling of a Call would prevent a cancelation exception from propagating down the Rx stream.

    源码下载:https://github.com/square/retrofit/releases/tag/parent-2.4.0
    Retrofit 2.4.0 发布,Android 的 REST 客户端下载地址
     
Loading...