Update retrofitVersionLatest to v2.9.0 - abandoned #52
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.1.0
->2.9.0
2.1.0
->2.9.0
2.1.0
->2.9.0
2.1.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.
v2.5.0
Unit
type. This behaves the same as Java'sVoid
where the bodycontent is ignored and immediately discarded.
Optional
andCompletableFuture
types. Previously the 'converter-java8'and 'adapter-java8' dependencies were needed and explicitly adding
Java8OptionalConverterFactory
and/orJava8CallAdapterFactory
to yourRetrofit.Builder
in order to use these types. Support is now built-in andthose types and their artifacts are marked as deprecated.
Invocation
class provides a reference to the invoked method and argument list as a tag on theunderlying OkHttp
Call
. This can be accessed from an OkHttp interceptor for things like logging, analytics,or metrics aggregation.
Retrofit
which allows you callcreate
passing the interface type only asa generic parameter (e.g.,
retrofit.create<MyService>()
).Response.success
overload which allows specifying a custom 2xx status code.Calls.failure
overload which allows passing anyThrowable
subtype.exception handler.
onSubscribe
.RxJavaPlugins
assembly hook when creating an RxJava 2 type.Optional
converters delegate properly. This ensures that convertersregistered prior to the optional converter can be used for deserializing the body type.
@Path
values from participating in path-traversal. This ensures untrusted input passed asa path value cannot cause you to make a request to an un-intended relative URL.
RuntimeException
or
IOException
when it fails.now a correct exception will be thrown when detected.
@QueryName
or@QueryMap
precedes a@Url
parameter.v2.4.0
Retrofit.Builder
exposes mutable lists of the added converter and call adapter factories.Future
.Error
s from callbacks (usuallyOutOfMemoryError
).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.
Call
cancelation with RxJava unsubscription/disposal. Prior tothis change, canceling of a
Call
would prevent a cancelation exception from propagating downthe Rx stream.
v2.3.0
Retrofit now uses
@Nullable
to annotate all possibly-null values. We'veadded a compile-time dependency on the JSR 305 annotations. This is a
[provided][maven_provided] dependency and does not need to be included in
your build configuration,
.jar
file, or.apk
. We use@ParametersAreNonnullByDefault
and all parameters and return types arenever null unless explicitly annotated
@Nullable
.Warning: this release is source-incompatible for Kotlin users.
Nullability was previously ambiguous and lenient but now the compiler will
enforce strict null checks.
New: Converters added for Java 8's and Guava's
Optional
which wrap a potentially-nullableresponse body. These converters still rely on normal serialization library converters for parsing
the response bytes into an object.
New: String converters that return
null
for an@Query
or@Field
parameter are now skipped.New: The mock module's
NetworkBehavior
now throws a custom subclass ofIOException
to moreclearly indicate the exception's source.
RxJava 1.x converter updated to 1.3.0 which stabilizes the use of
Completable
.Fix: Add explicit handling for
OnCompleteFailedException
,OnErrorFailedException
, andOnErrorNotImplementedException
for RxJava 1.x to ensure they're correct delivered to theplugins/hooks for handling.
Fix:
NoSuchElementException
thrown when unsubscribing from an RxJava 1.xSingle
.v2.2.0
@QueryName
annotation allows creating a query parameter with no '=' separator or value.protobuf.
toString()
implementations forResponse
andResult
.parsing.
createAsync()
to RxJava 1.x call adapter factory which executes requests usingCall.enqueue()
using the underlying HTTP client's asynchronous support.NetworkBehavior
now allows setting an error percentage and returns HTTP errors when triggered.HttpException
has been moved into the main artifact and should be used instead of the versionsembedded in each adapter (which have been deprecated).
CallAdapter
from theadapt
method to the enclosingclass. This is a source-incompatible but binary-compatible change which is only relevant if you are
implementing your own
CallAdapter
s.Call
in Retrofit'sCall
.String
type on non-body parameters. This allows userconverters to handle cases such as when annotating string parameters instead of them always using
the raw string.
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 these updates again.
This PR has been generated by Mend Renovate. View repository job log here.