mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-11 18:06:16 +00:00
fix!: MAL token serialization
This commit is contained in:
@@ -95,6 +95,10 @@ object MAL {
|
||||
@SerialName("expires_in") var expiresIn: Long,
|
||||
@SerialName("access_token") val accessToken: String,
|
||||
@SerialName("refresh_token") val refreshToken: String,
|
||||
) : java.io.Serializable
|
||||
) : java.io.Serializable {
|
||||
companion object {
|
||||
private const val serialVersionUID = 1L
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -31,12 +31,12 @@ class NetworkHelper(
|
||||
CloudflareInterceptor(context, cookieJar, ::defaultUserAgentProvider)
|
||||
}
|
||||
|
||||
private fun baseClientBuilder(callTimout: Int = 2): OkHttpClient.Builder {
|
||||
private fun baseClientBuilder(callTimeout: Int = 2): OkHttpClient.Builder {
|
||||
val builder = OkHttpClient.Builder()
|
||||
.cookieJar(cookieJar)
|
||||
.connectTimeout(30, TimeUnit.SECONDS)
|
||||
.readTimeout(30, TimeUnit.SECONDS)
|
||||
.callTimeout(callTimout.toLong(), TimeUnit.MINUTES)
|
||||
.callTimeout(callTimeout.toLong(), TimeUnit.MINUTES)
|
||||
.addInterceptor(UncaughtExceptionInterceptor())
|
||||
.addInterceptor(userAgentInterceptor)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user