Update dependency com.squareup.retrofit2:converter-scalars to v2.9.0 #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.5.0
->2.9.0
Release Notes
square/retrofit
v2.9.0
Compare Source
New: RxJava 3 adapter!
The Maven coordinates are
com.squareup.retrofit2:adapter-rxjava3
.Unlike the RxJava 1 and RxJava 2 adapters, the RxJava 3 adapter's
create()
method will produce asynchronous HTTP requests by default. For synchronous requests usecreateSynchronous()
and for synchronous on a scheduler usecreateWithScheduler(..)
.v2.8.2
This ensures that even when you're running on the JVM with Android classes present on the classpath you
get JVM semantics.
v2.8.1
MethodHandles.Lookup
on Android API 24 and 25. The class is only availableon Android API 26 and higher.
v2.8.0
Call.timeout()
which returns theokio.Timeout
of the full call.Call.awaitResponse()
to accept a nullable response type.Java. That bug was fixed in Java 14, and the fix broke our workaround.
v2.7.2
v2.7.1
v2.7.0
This release changes the minimum requirements to Java 8+ or Android 5+.
See this blog post for more information on the change.
Response.error
.v2.6.4
v2.6.3
UndeclaredThrowableException
in rare cases from usingyield
an explicit dispatch which ensures that it will work even on dispatchers which do not support yielding.
v2.6.2
IOException
s being wrapped inUndeclaredThrowableException
in rare cases when usingResponse<..>
as a return type for Kotlin 'suspend' functions.v2.6.1
IOException
s being wrapped inUndeclaredThrowableException
in rare cases.ResponseBody
for responses created byResponse.error
.v2.6.0
New: Support
suspend
modifier on functions for Kotlin! This allows you to express the asynchrony of HTTP requestsin an idiomatic fashion for the language.
Behind the scenes this behaves as if defined as
fun user(...): Call<User>
and then invoked withCall.enqueue
.You can also return
Response<User>
for access to the response metadata.Currently this integration only supports non-null response body types. Follow
issue 3075 for nullable type support.
New:
@Tag
parameter annotation for setting tags on the underlying OkHttpRequest
object. These can be readin
CallAdapter
s or OkHttpInterceptor
s for tracing, analytics, varying behavior, and more.New:
@SkipCallbackExecutor
method annotation will result in yourCall
invoking itsCallback
on thebackground thread on which the HTTP call was made.
New: Support OkHttp's
Headers
type for@HeaderMap
parameters.New: Add
Retrofit.Builder.baseUrl(URL)
overload.Fix: Add embedded R8/ProGuard rule which retains Retrofit interfaces (while still allowing obfuscation). This
is needed because R8 running in 'full mode' (i.e., not in ProGuard-compatibility mode) will see that there are
no subtypes of these interfaces and rewrite any code which references instances to null.
Fix: Mark
HttpException.response()
as@Nullable
as serializing the exception does not retain this instance.Fix: Fatal errors (such as stack overflows, out of memory, etc.) now propagate to the OkHttp
Dispatcher
threadon which they are running.
Fix: Ensure JAX-B converter closes the response body when an exception is thrown during deserialization.
Fix: Ignore static methods when performing eager validation of interface methods.
Fix: Ensure that calling
source()
twice on theResponseBody
passed to aConverter
always returns the sameinstance. Prior to the fix, intermediate buffering would cause response data to be lost.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.