Skip to content

Commit

Permalink
Allow to send null date encoded in JSON fix QMobileUI#15
Browse files Browse the repository at this point in the history
  • Loading branch information
e-marchand committed Feb 6, 2024
1 parent 579728d commit 4901b4b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
package com.qmobile.qmobileapi.network

import com.fasterxml.jackson.databind.ObjectMapper
import com.google.gson.GsonBuilder
import com.qmobile.qmobileapi.auth.AuthenticationInterceptor
import com.qmobile.qmobileapi.utils.LoginRequiredCallback
import com.qmobile.qmobileapi.utils.SharedPreferencesHolder
Expand Down Expand Up @@ -138,7 +139,7 @@ object ApiClient {
mapper
)
)
.addConverterFactory(GsonConverterFactory.create())
.addConverterFactory(GsonConverterFactory.create(GsonBuilder().serializeNulls().create()))
.addCallAdapterFactory(RxJava2CallAdapterFactory.create())
.build()
retrofit = newRetrofit
Expand Down

0 comments on commit 4901b4b

Please sign in to comment.