Skip to content

Commit 8bd6c99

Browse files
committed
Prepare next development version
1 parent 5d6650a commit 8bd6c99

File tree

2 files changed

+39
-15
lines changed

2 files changed

+39
-15
lines changed

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,40 @@
11
Change Log
22
==========
33

4+
Version 2.5.0 *(2018-11-18)*
5+
============================
6+
7+
* New: Built-in support for Kotlin's `Unit` type. This behaves the same as Java's `Void` where the body
8+
content is ignored and immediately discarded.
9+
* New: Build-in support for Java 8's `Optional` and `CompletableFuture` types. Previously the 'converter-java8'
10+
and 'adapter-java8' dependencies were needed and explicitly adding `Java8OptionalConverterFactory` and/or
11+
`Java8CallAdapterFactory` to your `Retrofit.Builder` in order to use these types. Support is now built-in and
12+
those types and their artifacts are marked as deprecated.
13+
* New: `Invocation` class provides a reference to the invoked method and argument list as a tag on the
14+
underlying OkHttp `Call`. This can be accessed from an OkHttp interceptor for things like logging, analytics,
15+
or metrics aggregation.
16+
* New: Kotlin extension for `Retrofit` which allows you call `create` passing the interface type only as
17+
a generic parameter (e.g., `retrofit.create<MyService>()`).
18+
* New: Added `Response.success` overload which allows specifying a custom 2xx status code.
19+
* New: Added `Call.failure` overload which allows passing any `Throwable` subtype.
20+
* New: Minimal R8 rules now ship inside the jar requiring no client configuration in the common case.
21+
* Fix: Do not propagate fatal errors to the callback. They are sent to the thread's uncaught
22+
exception handler.
23+
* Fix: Do not enqueue/execute an otherwise useless call when the RxJava type is disposed by `onSubscribe`.
24+
* Fix: Call `RxJavaPlugins` assembly hook when creating an RxJava 2 type.
25+
* Fix: Ensure both the Guava and Java 8 `Optional` converters delegate properly. This ensures that converters
26+
registered prior to the optional converter can be used for deserializing the body type.
27+
* Fix: Prevent `@Path` values from participating in path-traversal. This ensures untrusted input passed as
28+
a path value cannot cause you to make a request to an un-intended relative URL.
29+
* Fix: Simple XML converter (which is deprecated) no longer wraps subtypes of `RuntimeException`
30+
or `IOException` when it fails.
31+
* Fix: Prevent JAXB converter from loading remote entities and DTDs.
32+
* Fix: Correctly detect default methods in interfaces on Android (API 24+). These still do not work, but
33+
now a correct exception will be thrown when detected.
34+
* Fix: Report more accurate exceptions when a `@QueryName` or `@QueryMap` precedes a `@Url` parameter.
35+
* Update OkHttp dependency to 3.12.
36+
37+
438
Version 2.4.0 *(2018-03-14)*
539
----------------------------
640

README.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,7 @@ For more information please see [the website][1].
99
Download
1010
--------
1111

12-
Download [the latest JAR][2] or grab via Maven:
13-
```xml
14-
<dependency>
15-
<groupId>com.squareup.retrofit2</groupId>
16-
<artifactId>retrofit</artifactId>
17-
<version>2.4.0</version>
18-
</dependency>
19-
```
20-
or Gradle:
21-
```groovy
22-
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
23-
```
12+
Download [the latest JAR][2] or grab from Maven central at the coordinates `com.squareup.retrofit2:retrofit:2.5.0`.
2413

2514
Snapshots of the development version are available in [Sonatype's `snapshots` repository][snap].
2615

@@ -30,10 +19,11 @@ Retrofit requires at minimum Java 7 or Android 2.3.
3019
R8 / ProGuard
3120
-------------
3221

33-
If you are using R8 or ProGuard add the options from
34-
[this file](https://github.com/square/retrofit/blob/master/retrofit/src/main/resources/META-INF/proguard/retrofit2.pro).
22+
If you are using R8 the shrinking and obfuscation rules are included automatically.
3523

36-
You might also need rules for OkHttp and Okio which are dependencies of this library.
24+
ProGuard users must manually add the options from
25+
[this file](https://github.com/square/retrofit/blob/master/retrofit/src/main/resources/META-INF/proguard/retrofit2.pro).
26+
(Note: You might also need rules for OkHttp and Okio which are dependencies of this library)
3727

3828

3929
License

0 commit comments

Comments
 (0)