Sergio Crespo Toubes
07/02/2019, 12:59 PMOkHttp:4.0.0
i am getting this error SSLHandshakeException: Handshake failed
can someone know what changed? Thanks.jw
07/06/2019, 10:56 PMjw
07/07/2019, 5:12 PMmathew murphy
07/17/2019, 4:08 PMmoshi
variable knows about BlackjackHand
and has an adapter for it. I can't call moshi.adapter
until I have called .build()
, and once I've called .build()
I can't work out how to add another adapter to the set.kartoffelsup
07/18/2019, 2:00 PMSergioedcigreja
07/22/2019, 9:49 AMkevin.cianfarini
07/28/2019, 1:42 PMListAdapter
?jw
07/28/2019, 7:21 PMMike R
07/29/2019, 11:00 PMthis.rfBuilder.apply {
baseUrl(BASE_URL)
addConverterFactory(
GsonConverterFactory.create(
GsonBuilder().apply {
registerTypeAdapter(SearchQuery::class.java, SearchQueryAdapter())
excludeFieldsWithoutExposeAnnotation()
setPrettyPrinting()
}.create()
)
)
client(
OkHttpClient.Builder().apply {
addInterceptor { chain ->
val original = chain.request()
val requestBuilder = original.newBuilder().addHeader("User-Agent", USER_AGENT)
val request = requestBuilder.build()
chain.proceed(request)
}
}.build()
)
}
I've created a SearchQueryAdapter that implements JsonSerializer
and the serialize
function.
This is my function declaration in my Retrofit service:
@GET("posts")
fun searchListings(
@Query("request") searchQuery: SearchQuery,
@Query("count") count: Int = 50,
@Query("max_id") maxId: Int = 1
): Call<GetListingsResponse>
What's happening is that the query parameter for searchQuery doesn't serialize in that the value of the parameter becomes SearchQuery( <serialized content here>)
, which isn't valid for the API. What am I doing wrong here?ribesg
07/30/2019, 11:02 AMjulioyg
07/31/2019, 12:26 PMwarning: dagger.gradle.incremental is no longer recognized by Dagger
does that mean that incremental processing is not a thing anymore or that it's enabled by default or... somthing else?Thomas
07/31/2019, 9:57 PMkevin.cianfarini
08/03/2019, 4:50 PMjava.lang.IllegalArgumentException: Unable to create converter for com.kevincianfarini.saddle.data.network.PaginatedResponse<com.kevincianfarini.saddle.Artist>
for method SaddleAPI.getArtists
at retrofit2.Utils.methodError(Utils.java:52)
at retrofit2.HttpServiceMethod.createResponseConverter(HttpServiceMethod.java:115)
at retrofit2.HttpServiceMethod.parseAnnotations(HttpServiceMethod.java:82)
at retrofit2.ServiceMethod.parseAnnotations(ServiceMethod.java:37)
at retrofit2.Retrofit.loadServiceMethod(Retrofit.java:170)
at retrofit2.Retrofit$1.invoke(Retrofit.java:149)
at java.lang.reflect.Proxy.invoke(Proxy.java:913)
at $Proxy0.getArtists(Unknown Source)
at com.kevincianfarini.saddle.data.network.saddle.SaddleAPIManager.getArtists(SaddleAPIManager.kt:11)
at com.kevincianfarini.saddle.data.repository.ArtistRepository$syncChannel$2.invokeSuspend(ArtistRepository.kt:28)
at com.kevincianfarini.saddle.data.repository.ArtistRepository$syncChannel$2.invoke(Unknown Source:33)
at com.kevincianfarini.saddle.data.repository.Repository$exhaustPagination$2$1.invokeSuspend(Repository.kt:41)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
Drew Hamilton
08/06/2019, 11:14 AMIve Vasiljevic
08/06/2019, 11:19 AMResponse
both String and JSON (for example if server Response is successful I can deserialize Response into my class fields and if it is unsuccessful I get plain String)Jonas Bark
08/12/2019, 6:51 AMjoshr
08/14/2019, 8:40 PMmyanmarking
08/16/2019, 12:37 PM@JsonClass(generateAdapter = true)
. but i haven't got the relection-based dependency and it still works. does it mean, somehow, there's a transitive dependency on kotlin reflect ?Sergio Crespo Toubes
08/21/2019, 4:38 PMCody Engel
08/26/2019, 6:05 PMgenerateSqlDelightSchema
with version 1.1.4
?
It’s referenced in the readme but the task cannot be found, others have reported the issue without much traction so wondering if I’m missing something? https://github.com/square/sqldelight/issues/1400jw
08/30/2019, 3:24 PMjw
09/03/2019, 12:48 PMarekolek
09/12/2019, 12:59 PMegorand
09/17/2019, 11:05 AMjw
09/19/2019, 3:02 PMCasey Kulm
09/19/2019, 6:54 PMjw
09/23/2019, 7:39 PMbohsen
09/24/2019, 12:49 PMcompilerArgumentProvider new EnableDaggerIncrementalAP()
still needed in app build.gradle?ribesg
09/25/2019, 12:44 PMkevin.cianfarini
09/26/2019, 10:56 PMkevin.cianfarini
09/26/2019, 10:56 PMjw
09/26/2019, 11:19 PMkevin.cianfarini
09/26/2019, 11:20 PM