2.10.0 #4108
2.10.0
#4108
Replies: 1 comment 4 replies
-
Can I use ksp for response-type-keeper? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
New
Support using
Unit
as a response type. This can be used for non-body HTTP methods likeHEAD
or body-containing HTTP methods likeGET
where the body will be discarded without deserialization.kotlinx.serialization converter!
This was imported from github.com/JakeWharton/retrofit2-kotlinx-serialization-converter/ and remains unchanged from its 1.0.0 release.
The Maven coordinates are
com.squareup.retrofit2:converter-kotlinx-serialization
.JAXB 3 converter!
The Maven coordinates are
com.squareup.retrofit2:converter-jaxb3
.@Header
,@Headers
, and@HeaderMap
can now set non-ASCII values through theallowUnsafeNonAsciiValues
annotation property. These are not technically compliant with the HTTP specification, but are often supported or required by services.Publish a BOM of all modules. The Maven coordinates are
com.squareup.retrofit2:retrofit-bom
.Invocation
now exposes the serviceClass<?>
and the instance on which the method was invoked. This disambiguates the source when service inheritence is used.A response type keeper annotation processor is now available for generating shrinker rules for all referenced types in your service interface. In some cases, it's impossible for static shrinker rules to keep the entirety of what Retrofit needs at runtime. This annotation processor generates those additional rules. For more info see its README.
Changed
Call
,Response
, etc.) which are used via reflection at runtime.Retrofit.create
function now has a non-null lower bound. Even if you specified a nullable type before this function would never return null.Throwable
subtypes (not justException
subtypes) to avoid Java'sUndeclaredThrowableException
when thrown synchronously.suspend fun
functions that returnCall<Body>
. These are never correct, and should declare a return type ofBody
directly.create(ObjectMapper, MediaType)
overload to supply the value of theContent-Type
header for your format.Fixed
This discussion was created from the release 2.10.0.
Beta Was this translation helpful? Give feedback.
All reactions