Tower Guidev2
03/13/2023, 9:32 AMarrow.retrofit.adapter.either.ResponseE
in retrofit calls as follows:-
@FormUrlEncoded
@POST(OAUTH2_TOKENS_URL_PATH)
suspend fun accessToken(
@HeaderMap headers: Map<String, String> = emptyMap(),
@FieldMap(encoded = true) fields: Map<String, String>
) : ResponseE<CallError, AccessTokenResponse>
where CallError
is arrow.retrofit.adapter.either.networkhandling.CallError
as when i execute my android application I recieve a kotlin serialisation error stating no serialiser can be found for CallError
do i have to supply my own custom version of CallError that is annotated as @Serializable?
I am using this version of Arrow
api platform('io.arrow-kt:arrow-stack:1.1.5')
api 'io.arrow-kt:arrow-core'
api 'io.arrow-kt:arrow-core-retrofit'