diff --git a/pluto-kotlin-client-sdk/build.gradle b/pluto-kotlin-client-sdk/build.gradle index bc4dcb0..9cf8586 100644 --- a/pluto-kotlin-client-sdk/build.gradle +++ b/pluto-kotlin-client-sdk/build.gradle @@ -4,8 +4,8 @@ apply plugin: 'kotlin-android-extensions' apply plugin: 'maven-publish' buildscript { - ext.versionCode = 23 - ext.versionName = '0.8.4' + ext.versionCode = 24 + ext.versionName = '0.8.5' } android { diff --git a/pluto-kotlin-client-sdk/src/main/java/com/mushare/plutosdk/Pluto+Auth.kt b/pluto-kotlin-client-sdk/src/main/java/com/mushare/plutosdk/Pluto+Auth.kt index 85c7b83..6acfc52 100644 --- a/pluto-kotlin-client-sdk/src/main/java/com/mushare/plutosdk/Pluto+Auth.kt +++ b/pluto-kotlin-client-sdk/src/main/java/com/mushare/plutosdk/Pluto+Auth.kt @@ -53,7 +53,8 @@ fun Pluto.refreshAccessToken( ) { val plutoResponse = response.body() if (plutoResponse == null) { - error?.invoke(parseErrorCodeFromErrorBody(response.errorBody(), gson)) + val plutoError = parseErrorCodeFromErrorBody(response.errorBody(), gson) + error?.invoke(plutoError) return } plutoResponse.analysis(